Upload artifacts #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: ππ¦ Build & Test | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
code-linting: | |
name: π‘ Code Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install pre-commit | |
run: pip3 install pre-commit | |
- name: Lint | |
run: make lint | |
static-analysis: | |
name: π§ Static Analysis | |
runs-on: ubuntu-latest | |
needs: code-linting | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install tools | |
run: pip3 install bandit mypy | |
- name: Scan | |
run: make scan | |
- name: Upload Scan Results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bandit | |
path: bandit_scan.txt | |
retention-days: 1 | |
unit-tests: | |
name: π§ͺ Unit Tests | |
runs-on: ubuntu-latest | |
needs: code-linting | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install | |
run: make install | |
- name: Test | |
run: make test | |
generate-docs: | |
name: π Generate Docs | |
runs-on: ubuntu-latest | |
needs: | |
- code-linting | |
- unit-tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install tools | |
run: pip install mkdocs mkdocstrings mkdocs-exclude mkdocs-material | |
- name: Generate | |
run: make docs | |
- name: Upload Docs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docs | |
path: public | |
retention-days: 1 | |
build: | |
name: π¨ Build | |
runs-on: ubuntu-latest | |
needs: | |
- code-linting | |
- unit-tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install | |
run: make install | |
- name: Build | |
run: make build | |
- name: Upload Wheel | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheel | |
path: dist/*.whl | |
retention-days: 7 |