Skip to content

Commit 3b7ee07

Browse files
committed
Update build versions
1 parent c129a94 commit 3b7ee07

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,37 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: [2.7, 3.6.15, 3.7, 3.8, 3.9, "3.10"]
19+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install flake8 numpy pytest
31+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32+
git clone https://github.com/spectralpython/sample-data.git ~/spectral_data
33+
- name: Lint with flake8
34+
run: |
35+
# stop the build if there are Python syntax errors or undefined names
36+
flake8 . --count --select=E9,F63,F7,F822 --show-source --statistics
37+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
- name: Run unit tests
40+
run: |
41+
SPECTRAL_DATA=~/spectral_data python -m spectral.tests.run
42+
43+
build:
44+
45+
runs-on: ubuntu-20.04
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
python-version: [3.6.15, 3.7, 3.8]
2050

2151
steps:
2252
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)