Release 1.2.0 (#18) #79
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
linters: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install python packages and dependencies | |
run: | | |
pip install -U .[dev] | |
- name: Run black | |
run: | | |
make test-black | |
- name: Run codespell | |
run: | | |
make test-codespell | |
- name: Run flake8 | |
run: | | |
make test-flake8 | |
- name: Run isort | |
run: | | |
make test-isort | |
- name: Run mypy | |
run: | | |
make test-mypy | |
- name: Run pydocstyle | |
run: | | |
make test-pydocstyle | |
- name: Run pylint | |
run: | | |
make test-pylint | |
- name: Run pyright | |
run: | | |
sudo snap install --classic pyright | |
make test-pyright | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
python-version: ["3.8", "3.10"] | |
include: | |
- adjective: focal | |
- os: ubuntu-22.04 | |
python-version: "3.10" | |
adjective: jammy | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install -U .[dev] | |
pip install -e . | |
- name: Run unit tests | |
run: | | |
make test-units | |
- name: Run integration tests | |
run: | | |
make test-integrations |