From e7a5604d17f94801bac67a26dc309260b7f44a1c Mon Sep 17 00:00:00 2001 From: Niels Date: Sat, 16 Nov 2024 11:18:52 +0100 Subject: [PATCH] Run pytest on many versions --- .github/workflows/build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ef3fdc..0348c9b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,19 +13,26 @@ jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install pre-commit - pip install -e . + pip install -e ".[testing]" - name: Run pre-commit checks run: | pre-commit install pre-commit run --all-files + - name: Test with pytest + run: | + pytest \ No newline at end of file