From d89ec1f1d237352a31adfb986b010e0f61385830 Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Wed, 6 Mar 2024 23:52:00 +1300 Subject: [PATCH] tests: add github actions setup for pytest --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..5156692 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: test + +on: push + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + python-version: + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" + + name: pytest + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: python -m pip install .[test] + + - name: Run tests + run: pytest