From ef8d318075d7300f773cec5bbb3284a3fa030bb2 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 24 Oct 2025 17:23:33 +0200 Subject: [PATCH 1/3] Add GitHub Actions workflow to run pytest --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d494d02 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: ci +on: + push: + pull_request: + workflow_dispatch: +jobs: + pytest: + strategy: + fail-fast: false + matrix: # https://github.com/actions/python-versions/releases + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "pypy-3.11"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + allow-prereleases: true + - run: python3 -m pip install --upgrade pip + - run: pip install pytest pytest-asyncio + - run: pip install --editable . + - run: pytest From 307222dee776f399db0d7041d04a2373bc56794e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 24 Oct 2025 17:30:05 +0200 Subject: [PATCH 2/3] nosetests --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d494d02..b222e99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: pull_request: workflow_dispatch: jobs: - pytest: + nosetests: strategy: fail-fast: false matrix: # https://github.com/actions/python-versions/releases @@ -18,6 +18,7 @@ jobs: python-version: ${{ matrix.python-version }} allow-prereleases: true - run: python3 -m pip install --upgrade pip - - run: pip install pytest pytest-asyncio + - run: pip install nose-py3 pytest pytest-asyncio - run: pip install --editable . - - run: pytest + - run: nosetests + - run: pytest || true From 9f7d9ee6a69d2d93c143c4cb760f4c811cb0eabd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 24 Oct 2025 17:35:07 +0200 Subject: [PATCH 3/3] exclude: os: windows-latest pypy-3.11 Exclude pypy-3.11 from windows-latest in CI matrix. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b222e99..a085a72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ jobs: matrix: # https://github.com/actions/python-versions/releases os: [ubuntu-latest, macos-latest, windows-latest] python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "pypy-3.11"] + exclude: + - os: windows-latest + python-version: "pypy-3.11" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v5