mirror of
https://github.com/Casvt/MIND.git
synced 2026-04-03 03:00:22 -04:00
Added pip caching in workflows
This commit is contained in:
22
.github/workflows/build_docs.yml
vendored
22
.github/workflows/build_docs.yml
vendored
@@ -8,27 +8,25 @@ on:
|
||||
jobs:
|
||||
update:
|
||||
name: Update API docs
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.x
|
||||
python-version: 3.8
|
||||
cache: 'pip'
|
||||
- run: pip install -r requirements.txt
|
||||
- run: python3 project_management/generate_api_docs.py
|
||||
|
||||
deploy:
|
||||
needs: update
|
||||
name: Build docs
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.x
|
||||
python-version: 3.8
|
||||
cache: 'pip'
|
||||
- run: pip install -r project_management/docs-requirements.txt
|
||||
- run: mkdocs gh-deploy --force -f project_management/mkdocs.yml
|
||||
|
||||
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@@ -18,6 +18,7 @@ jobs:
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user