From f74a5d8abfe8099d561d532be0d25ce70f77a738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Thu, 17 Oct 2024 09:25:55 +0000 Subject: [PATCH 1/2] Remove pytest-runner --- requirements.txt | 1 - setup.py | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 65529ded..315310b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ tox pytest -pytest-runner setuptools_scm pkgconfig future diff --git a/setup.py b/setup.py index 9bc91f01..d710ea36 100644 --- a/setup.py +++ b/setup.py @@ -161,9 +161,6 @@ def pkgconfig_installed_check(lib, required_version, default): 'pytest-cov', ], -# Only require pytest-runner if actually running the tests -needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) -pytest_runner = ['pytest-runner'] if needs_pytest else [] # Finally call setup with the extension modules as defined above. setup( @@ -175,7 +172,7 @@ def pkgconfig_installed_check(lib, required_version, default): setup_requires=[ 'setuptools_scm', 'pkgconfig', - ] + pytest_runner, + ], description="LZ4 Bindings for Python", long_description=open('README.rst', 'r').read(), author='Jonathan Underwood', From 8003b2d339a8222cdd1f800f105142aa223814c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Thu, 17 Oct 2024 09:26:00 +0000 Subject: [PATCH 2/2] Add testing CI --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 00000000..da0b26af --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Test + +on: + push: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Test with ${{matrix.env}} on ${{matrix.os}} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + env: + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + os: + - ubuntu-latest + - macos-13 # x86 + - macos-latest # arm + - window-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: ${{matrix.env}} + cache: pip + - run: pip install -r requirements.txt + - run: tox