-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 993 Bytes
/
Copy pathtests.yml
File metadata and controls
36 lines (34 loc) · 993 Bytes
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
name: tests
on:
push:
branches: [main]
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
numpy: ["", ">=2"]
exclude:
- numpy: ">=2"
python-version: "3.10"
- numpy: ">=2"
python-version: "3.11"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Install NumPy 2.x
if: matrix.numpy != ''
run: pip install "numpy${{ matrix.numpy }}"
- name: Byte-compile all modules
run: python -m py_compile app_bet.py bet_analysis.py tplot_analysis.py langmuir.py rouquerol.py xls_reader.py
- name: Run unit tests
run: python -m pytest tests/ -v