11name : Build
2- on : [push, pull_request]
2+ on :
3+ - push
4+ - pull_request
35jobs :
46 lint :
57 if : github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags')
68 runs-on : ubuntu-latest
79 steps :
810 - name : Checkout
9- uses : actions/checkout@v2
11+ uses : actions/checkout@v3
1012 - name : Install latest rust
1113 uses : actions-rs/toolchain@v1
1214 with :
1315 toolchain : stable
16+ profile : minimal
1417 override : true
1518 components : clippy
1619 - name : Lint with clippy
@@ -24,25 +27,33 @@ jobs:
2427 strategy :
2528 fail-fast : false
2629 matrix :
27- python-version : ['3.7', '3.8', '3.9', '3.10']
28- os : [ubuntu-latest , macos-latest, windows-latest]
30+ python-version :
31+ - ' 3.7'
32+ - ' 3.8'
33+ - ' 3.9'
34+ - ' 3.10'
35+ os :
36+ - ubuntu-latest
37+ - macos-latest
38+ - windows-latest
2939 steps :
3040 - name : Checkout
31- uses : actions/checkout@v2
41+ uses : actions/checkout@v3
3242 - name : Set up Python ${{ matrix.python-version }}
33- uses : actions/setup-python@v2
43+ uses : actions/setup-python@v3
3444 with :
3545 python-version : ${{ matrix.python-version }}
36- - name : Run image
37- uses : abatilo/actions-poetry@v2.0.0
38- - name : Install latest rust
46+ - name : Install Poetry
47+ uses : abatilo/actions-poetry@v2.1.3
48+ - name : Install Rust
3949 uses : actions-rs/toolchain@v1
4050 with :
51+ profile : minimal
4152 toolchain : stable
4253 override : true
4354 - name : Install dependencies
4455 run : poetry install
4556 - name : Build Python package
4657 run : poetry run maturin develop
4758 - name : Test
48- run : poetry run pytest tests
59+ run : poetry run pytest -Werror tests
0 commit comments