Skip to content

Commit

Permalink
test: update GitHub Action for testing the package
Browse files Browse the repository at this point in the history
  • Loading branch information
vst committed Sep 25, 2024
1 parent 970f16e commit 07317ec
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,30 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: "ubuntu-latest"
strategy:
matrix:
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
- name: "Checkout codebase"
uses: "actions/checkout@v4"
- name: "Setup Python"
uses: "actions/setup-python@v5"
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox -e py
python-version: "${{ matrix.python }}"
- name: "Install Package with Test Dependencies"
run: "pip install -e \".[test]\""
- name: "Run Tests: isort"
run: "isort --diff --check decaf/"
- name: "Run Tests: black"
run: "black --check decaf/"
- name: "Run Tests: mypy"
run: "mypy --namespace-packages --package decaf.api.client"
- name: "Run Tests: flake8"
run: "flake8"
- name: "Run Tests: pytest"
run: "pytest --verbose --doctest-modules"
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
isort --diff --check decaf/
black --check decaf/
mypy --namespace-packages decaf/api/client
mypy --namespace-packages --package decaf.api.client
flake8
pytest --verbose --ignore=setup.py --ignore-glob=tmp/* --doctest-modules
Expand Down

0 comments on commit 07317ec

Please sign in to comment.