From a57d67a95b2145ae8270c18b06cb01b4838fd489 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 21 Nov 2024 13:33:16 +0100 Subject: [PATCH 1/3] Add a GitHub Action to run pytest --- .github/workflows/pytest.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..8289e14 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,21 @@ +name: pytest +on: + push: + pull_request: + workflow_dispatch: +jobs: + pytest: + strategy: + fail-fast: false + matrix: # https://github.com/actions/python-versions/releases + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.10"] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - run: pip install --upgrade pip wheel + - run: pip install pytest + - run: pip install --editable . + - run: pytest From e91281f85baf781a85d7917f22dca9226ac27a12 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 21 Nov 2024 13:36:11 +0100 Subject: [PATCH 2/3] pip install aiofiles pytest --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 8289e14..72b8837 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,6 +16,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pip install --upgrade pip wheel - - run: pip install pytest + - run: pip install aiofiles pytest - run: pip install --editable . - run: pytest From 319f5d88288f21ad25ff92f6da4cde05a4e4adeb Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 21 Nov 2024 13:48:18 +0100 Subject: [PATCH 3/3] pip install aiofiles asynctempfile pytest --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 72b8837..c1cb45a 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,6 +16,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pip install --upgrade pip wheel - - run: pip install aiofiles pytest + - run: pip install aiofiles asynctempfile pytest - run: pip install --editable . - run: pytest