diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74a31f24..647d07bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,32 +10,50 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 - uses: pre-commit/action@v3.0.0 test: - name: Unit Tests - runs-on: ubuntu-latest + name: Unit tests on Python ${{ matrix.python-version }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} strategy: - max-parallel: 5 + fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + os: [ubuntu-latest, macos-latest] + python-version: ["3.9", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.9", "pypy3.10"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 + - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies - run: python -m pip install -U pip -r requirements-dev.txt "coveralls<3.0.0" + run: python -m pip install -U pip -r requirements-dev.txt coveralls - name: Run test suite env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + COVERALLS_PARALLEL: "true" + OVERALLS_SERVICE_JOB_ID: ${{ github.run_id }} run: | - tox - coveralls + coverage run -m pytest + coverage xml + coveralls --service=github + + mypy: + name: Type Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: "3.12" + - run: pip install mypy + - run: | + pip install + mypy . diff --git a/README.rst b/README.rst index 67946435..dab7718d 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,7 @@ Installation .. _installation_start: -|Brand| supports python ``3.6+``. It may also work on pypy, cython, and jython, but is not being tested for these versions. +|Brand| supports is tested for supported Python, i.e. 3.9+. It is tested for PyPy3.9 and PyPy3.10. It may also work Cython, and Jython but is not being tested for in the CI script. To install |Brand| run the following command: diff --git a/requirements-dev.txt b/requirements-dev.txt index e8f8d7fa..298750dd 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,7 +7,5 @@ numpydoc==1.1.0 # Testing parameterized==0.7.0 -tox==3.14.3 -tox-venv==0.4.0 -tox-gh-actions==0.3.0 coverage==5.1 +pytest diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 2f0e6893..00000000 --- a/tox.ini +++ /dev/null @@ -1,16 +0,0 @@ -[tox] -envlist = py38,py39,py310,py311,pypy3 - -[testenv] -description = testing against {basepython} -deps = -r requirements-dev.txt -commands = - coverage run - coverage xml - -[gh-actions] -python = - 3.8: py38 - 3.9: py39 - 3.10: py310 - 3.11: py311