Skip to content

Commit

Permalink
Merge pull request #20 from mdekstrand/feature/py310
Browse files Browse the repository at this point in the history
Test with Python 3.10 and Numba 0.55
  • Loading branch information
mdekstrand committed Jan 14, 2022
2 parents 03fde2d + 8f47927 commit 56d59d9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 4 deletions.
55 changes: 52 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ defaults:
shell: bash -l {0}

jobs:
test:
name: Test with Python ${{matrix.python}} on ${{matrix.platform}}
test-conda:
name: Test with Conda Python ${{matrix.python}} on ${{matrix.platform}}
runs-on: ${{matrix.platform}}-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -77,10 +77,59 @@ jobs:
- name: Upload coverage
uses: codecov/codecov-action@v1

test-vanilla:
name: Test w/ Vanilla Python ${{matrix.python}} on ${{matrix.platform}}
runs-on: ${{matrix.platform}}-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
platform:
- windows
- ubuntu
steps:
- name: Check out source
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{matrix.python}}
architecture: x64

- name: Set up Python build deps
env:
PIP_PREFER_BINARY: 'true'
run: |
python -m pip install -U flit wheel
- name: Install CSR and its deps
env:
PIP_PREFER_BINARY: 'true'
run: |
flit install --pth-file --deps develop
- name: Run tests
run: |
python -m pytest --cov=csr --cov-report=xml --log-file=test.log
- name: Aggreagate Coverage Data
run: coverage xml

- name: Upload coverage
uses: codecov/codecov-action@v1

sdist:
name: Build Source Packages
runs-on: ubuntu-latest
needs: [test]
needs: [test-conda, test-vanilla]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ classifiers = ["License :: OSI Approved :: MIT License"]
description-file = "README.md"
requires-python = ">= 3.7"
requires = [
"numba >=0.51,<0.55",
"numba >=0.51,<0.56",
"numpy >=1.17",
"scipy ==1.*"
]
Expand Down

0 comments on commit 56d59d9

Please sign in to comment.