From 56e1493cd32920156e30b6a83a33f05abe15fc7a Mon Sep 17 00:00:00 2001 From: Mitch Negus Date: Fri, 15 Nov 2024 16:24:15 -0700 Subject: [PATCH] Add unit tests to GitHub workflows --- .github/workflows/testing.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/testing.yml diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..632aab0 --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,31 @@ +# This workflow will install Python dependencies and run tests with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Testing + +on: + push: + branches: [ "*" ] + pull_request: + branches: [ "main" ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: | + 3.8 + 3.9 + 3.10 + 3.11 + 3.12 + 3.13 + - name: Install dependencies + uses: ./.github/actions/prepare-tox + - name: Run unit tests + run: | + tox -e py38,py39,py310,py311,py312,py313