Add version 1.01 #27
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
default: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Set up Environment | |
run: | | |
python -m pip install --upgrade pip --default-timeout=100 | |
pip3 install -r ./requirements.txt --default-timeout=100 | |
- name: Unit Tests | |
run: | | |
pwd | |
python3 -m unittest discover ./tests/ | |
- name: Static Checks | |
run: | | |
pip3 install flake8 mypy --default-timeout=100 | |
mypy --config-file ./ci/mypy.cfg ./ | |
flake8 --config ./ci/flake8.cfg | |
# If this fails run: python3 -m black . --config ./ci/black.toml | |
python3 -m black . --config ./ci/black.toml --check | |
python3 -m pip_audit -r requirements.txt |