generated from pypa/sampleproject
-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (49 loc) · 1.42 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to
# help test this project
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python: ['3.9', '3.10' , '3.11', '3.12']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install finufft ipywidgets
pip install -e .[test,toolkit]
- name: Test
run: |
pytest
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Linters
run: |
black --check src tests
ruff check .
- name: Annotate locations with typos
if: always()
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
if: always()
uses: codespell-project/actions-codespell@v2