Skip to content

Commit 118df82

Browse files
author
Olivier
committed
deprecate python <3.10 add 3.13 for CI
1 parent 5ca2bbb commit 118df82

File tree

1 file changed

+33
-34
lines changed

1 file changed

+33
-34
lines changed

.github/workflows/python-package.yml

+33-34
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,50 @@ name: Python package
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [master]
99
pull_request:
10-
branches: [ master ]
10+
branches: [master]
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615
strategy:
1716
fail-fast: false
1817
matrix:
19-
python-version: ['3.7', '3.11', 'pypy-3.10']
18+
python-version: ["3.10", "3.13", "pypy-3.10"]
2019

2120
steps:
22-
- uses: actions/checkout@v4
23-
with:
24-
submodules: true
25-
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v5
27-
with:
28-
python-version: ${{ matrix.python-version }}
29-
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip
32-
python -m pip install pytest mypy ruff
33-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34-
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
35-
- name: Test with pytest
36-
run: |
37-
pytest -v -s
21+
- uses: actions/checkout@v4
22+
with:
23+
submodules: true
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install pytest mypy ruff
32+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
34+
- name: Test with pytest
35+
run: |
36+
pytest -v -s
3837
3938
lint:
4039
runs-on: ubuntu-latest
4140
steps:
42-
- uses: actions/checkout@v4
43-
with:
44-
submodules: true
45-
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v5
47-
with:
48-
python-version: "3.12"
49-
- name: Install dependencies
50-
run: |
51-
python -m pip install --upgrade pip
52-
python -m pip install pre-commit
53-
- name: Lint with ruff
54-
run: |
55-
pre-commit run -a
41+
- uses: actions/checkout@v4
42+
with:
43+
submodules: true
44+
- name: Set up Python ${{ matrix.python-version }}
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: "3.12"
48+
- name: Install dependencies
49+
run: |
50+
python -m pip install --upgrade pip
51+
python -m pip install pre-commit
52+
- name: Lint with ruff
53+
run: |
54+
pre-commit run -a

0 commit comments

Comments
 (0)