Skip to content

Upload artifacts

Upload artifacts #4

Workflow file for this run

---
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