From d47ed8cb18871d8c9bc2087ad73b70c5a41e64ec Mon Sep 17 00:00:00 2001 From: Bruce Merry Date: Sat, 23 Mar 2024 21:36:44 +0200 Subject: [PATCH] Fix GHA (hopefully) The pre-commit actions now specifically require Python 3.8 to build the requirements file, so should only be tested there. --- .github/workflows/test.yml | 16 +++++++++++++--- pyproject.toml | 3 ++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cbfe05e..09d3000 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,12 +3,24 @@ name: Run tests on: [push] jobs: + lint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.8 + uses: actions/setup-python@v5 + with: + python-version: "3.8" + - name: Install dependencies + run: pip install -r requirements.txt + - name: Run pre-commit + run: pre-commit run --all-files + build: runs-on: ubuntu-22.04 strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -17,8 +29,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: pip install -r requirements.txt - - name: Run pre-commit - run: pre-commit run --all-files - name: Install package run: pip install . - name: Run pytest diff --git a/pyproject.toml b/pyproject.toml index 2a39a17..8fd8d67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,3 @@ [build-system] -requires = ["setuptools", "wheel", "setuptools-scm"] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta"