Skip to content

Commit

Permalink
Merge pull request #28 from clbarnes/numpy2
Browse files Browse the repository at this point in the history
Use numpy interface
  • Loading branch information
clbarnes authored Apr 11, 2022
2 parents 192d774 + 3b10cd7 commit 17793b8
Show file tree
Hide file tree
Showing 15 changed files with 548 additions and 617 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: pip install $(grep -E '^(black|flake8|mypy|isort)' requirements.txt)
- run: pip install $(grep -E '^(black|flake8|mypy|isort|numpy)' requirements.txt)
- run: make lint-python

test-rust:
Expand All @@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9', '3.10']
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand All @@ -71,7 +71,7 @@ jobs:
name: Install dependencies
- run: |
mkdir -p $TGT_DIR
rm $TGT_DIR/*.whl
rm -f $TGT_DIR/*.whl
maturin build --release --interpreter python --out $TGT_DIR
pip install $TGT_DIR/*.whl
name: Install package
Expand All @@ -82,7 +82,7 @@ jobs:
deploy:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-18.04]
os: [macos-latest, windows-latest, ubuntu-20.04]
needs: [lint-rust, lint-python, test-rust, test-python]
runs-on: ${{ matrix.os }}
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
Expand Down
14 changes: 12 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ sphinx:
builder: html

build:
os: "ubuntu-20.04"
os: "ubuntu-22.04"
tools:
python: "3.9"
rust: "1.55"
apt_packages:
- curl
- build-essential
- gcc
- make
jobs:
pre_create_environment:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
pre_install:
- /bin/bash scripts/cargo_hack.sh


python:
install:
Expand Down
Loading

0 comments on commit 17793b8

Please sign in to comment.