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 8176bbd
Showing 1 changed file with 19 additions and 12 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 decaf/api/client"
- name: "Run Tests: flake8"
run: "flake8"
- name: "Run Tests: pytest"
run: "pytest --verbose --doctest-modules"

0 comments on commit 8176bbd

Please sign in to comment.