mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
Sped up docs workflow and added names
This commit is contained in:
23
.github/workflows/build_docs.yml
vendored
23
.github/workflows/build_docs.yml
vendored
@@ -6,27 +6,20 @@ on:
|
||||
- Development
|
||||
|
||||
jobs:
|
||||
update:
|
||||
name: Update API docs
|
||||
update_build:
|
||||
name: Update API docs and build docs
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
name: Setup checkout
|
||||
- uses: actions/setup-python@v4
|
||||
name: Setup python 3.8
|
||||
with:
|
||||
python-version: 3.8
|
||||
cache: 'pip'
|
||||
- run: pip install -r requirements.txt
|
||||
- run: pip install -r requirements.txt -r project_management/docs-requirements.txt
|
||||
name: Install dependencies
|
||||
- run: python3 project_management/generate_api_docs.py
|
||||
|
||||
deploy:
|
||||
needs: update
|
||||
name: Build docs
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.8
|
||||
cache: 'pip'
|
||||
- run: pip install -r project_management/docs-requirements.txt
|
||||
name: Generate API docs
|
||||
- run: mkdocs gh-deploy --force -f project_management/mkdocs.yml
|
||||
name: Build docs
|
||||
|
||||
17
.github/workflows/tests.yml
vendored
17
.github/workflows/tests.yml
vendored
@@ -14,16 +14,17 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
name: Set up checkout
|
||||
- uses: actions/setup-python@v4
|
||||
name: Set up Python ${{ matrix.python-version }}
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
|
||||
- run: pip install -r requirements.txt
|
||||
name: Install dependencies
|
||||
|
||||
- run: |
|
||||
mkdir db
|
||||
python -m unittest discover -s ./tests -p '*.py'
|
||||
name: Run Tests
|
||||
|
||||
Reference in New Issue
Block a user