From 40de8b11e327a0356fddf6cc119e41dd73b31f34 Mon Sep 17 00:00:00 2001 From: John Garbutt Date: Tue, 5 Nov 2024 15:46:39 +0000 Subject: [PATCH] Add tox workflow --- .github/workflows/tox.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/tox.yaml diff --git a/.github/workflows/tox.yaml b/.github/workflows/tox.yaml new file mode 100644 index 0000000..aa98fa3 --- /dev/null +++ b/.github/workflows/tox.yaml @@ -0,0 +1,28 @@ +name: Tox unit tests + +on: + workflow_call: + +jobs: + build: + name: Tox unit tests and linting + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.10'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install tox + + - name: Test with tox + run: tox