From 5b0165f16865c0f034ce85164793ef6016ffb774 Mon Sep 17 00:00:00 2001 From: LTLA Date: Thu, 4 Apr 2024 08:43:57 -0700 Subject: [PATCH] Added an action to run tests. --- .github/workflows/run-tests.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/run-tests.yaml diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..294507b --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -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