Skip to content

Commit

Permalink
Added an action to run tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Apr 4, 2024
1 parent c1235f6 commit 5b0165f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run unit tests

on:
push:
branches: [ master ]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]

name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

# We do proper tests if we're on the master branch, or if we're creating a new release.
- name: Test with tox
run: |
pip install tox
tox

0 comments on commit 5b0165f

Please sign in to comment.