Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install poetry
run: pipx install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: poetry install

- name: Run Code Quality checks
run: make ci-check

- name: Run tests
run: poetry run pytest
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ check:
poetry run autoflake --in-place --recursive --remove-all-unused-imports --remove-duplicate-keys --remove-unused-variables .
poetry run pflake8 .
poetry run bandit .
poetry run safety check
# poetry run safety check
poetry run mypy .

ci-check:
Expand All @@ -13,7 +13,7 @@ ci-check:
poetry run autoflake --check .
poetry run pflake8 .
poetry run bandit .
poetry run safety check
# poetry run safety check
poetry run mypy .

### catch all
Expand Down
Loading
Loading