From 06672d8c576f0bdcb57b8d0286893a527eb05571 Mon Sep 17 00:00:00 2001 From: Isaac To Date: Tue, 22 Oct 2024 14:22:38 -0700 Subject: [PATCH] Add github action workflow for testing --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..12ba01d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + tags: + - '*' + workflow_dispatch: + +jobs: + test: + runs-on: ${{ matrix.runs-on }} + strategy: + fail-fast: false + matrix: + runs-on: + - macos-latest + - windows-latest + - ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Hatch + uses: pypa/hatch@install + + - name: Run tests + run: hatch run test:python -m pytest --numprocesses=logical -s -v tests + env: + # Needed for coveralls: + GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +# vim:set et sts=2: