forked from docs/doc-exports
disabling cache and moving install convertor to other job
This commit is contained in:
@ -25,8 +25,8 @@ jobs:
|
|||||||
|
|
||||||
install-convertor:
|
install-convertor:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
# outputs:
|
||||||
cache-key: ${{ steps.cache-key.outputs.key }}
|
# cache-key: ${{ steps.cache-key.outputs.key }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -36,16 +36,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.10' # adjust version as needed
|
python-version: '3.10' # adjust version as needed
|
||||||
|
|
||||||
- name: Generate cache key
|
# - name: Generate cache key
|
||||||
id: cache-key
|
# id: cache-key
|
||||||
run: |
|
# run: |
|
||||||
echo "key=venv-${{ hashFiles('requirements.txt') }}" >> $GITHUB_OUTPUT
|
# echo "key=venv-${{ hashFiles('requirements.txt') }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Cache venv
|
# - name: Cache venv
|
||||||
uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
with:
|
# with:
|
||||||
path: ./venv
|
# path: ./venv
|
||||||
key: ${{ steps.cache-key.outputs.key }}
|
# key: ${{ steps.cache-key.outputs.key }}
|
||||||
|
|
||||||
- name: Clone doc-convertor from Gitea
|
- name: Clone doc-convertor from Gitea
|
||||||
env:
|
env:
|
||||||
@ -96,7 +96,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
generate-docs:
|
generate-docs:
|
||||||
needs: install-convertor
|
# needs: install-convertor
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
DOCS_UPDATE_DATA_FILE: metadata.yaml
|
DOCS_UPDATE_DATA_FILE: metadata.yaml
|
||||||
@ -111,11 +111,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.10
|
python-version: 3.10
|
||||||
|
|
||||||
- name: Restore venv from cache
|
# - name: Restore venv from cache
|
||||||
uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
with:
|
# with:
|
||||||
path: ./venv
|
# path: ./venv
|
||||||
key: ${{ needs.install-convertor.outputs.cache-key }}
|
# key: ${{ needs.install-convertor.outputs.cache-key }}
|
||||||
|
|
||||||
|
- name: Clone doc-convertor from Gitea
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.TEST_TOKEN }}
|
||||||
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
run: |
|
||||||
|
git clone https://${GITEA_TOKEN}@gitea.eco.tsi-dev.otc-service.com/docs/doc-convertor.git
|
||||||
|
|
||||||
|
- name: Create virtualenv and install package in editable mode
|
||||||
|
run: |
|
||||||
|
python -m venv ~/.venv
|
||||||
|
source ~/.venv/bin/activate
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install -e ./doc-convertor
|
||||||
|
|
||||||
- name: Install PyYAML (to parse YAML files)
|
- name: Install PyYAML (to parse YAML files)
|
||||||
run: pip install pyyaml
|
run: pip install pyyaml
|
||||||
|
|||||||
Reference in New Issue
Block a user