-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (35 loc) · 1.17 KB
/
python-package-tox.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
# This workflow will install tox and use it to run tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
numpyversion: ["1", "2"]
exclude:
- python: "3.6"
numpyversion: "2"
- python: "3.7"
numpyversion: "2"
- python: "3.8"
numpyversion: "2"
fail-fast: false
runs-on: ${{ matrix.python <= '3.6' && 'ubuntu-20.04' || 'ubuntu-22.04' }}
name: Test on python ${{ matrix.python }} and numpy ${{ matrix.numpyversion }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: pip install tox
- name: Install numpy ${{ matrix.numpyversion }}
run: pip install numpy==${{ matrix.numpyversion }}.*
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e py