From 7ffa2999e49ea91da5c92dab50f7d9595eca238b Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Sat, 25 May 2024 10:55:08 +0100 Subject: [PATCH] Update unit test --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a87d396 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Test Pypi package + +on: + push: + branches: + - main + paths-ignore: + - README.md + pull_request: + branches: + - main + paths-ignore: + - README.md + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python: [3.10.11] + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install Tox + run: pip install tox + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '11' + - name: Run Tox + # Run tox using the version of Python in `PATH` + run: tox -e py -v