Skip to content

Commit 493f2c5

Browse files
committed
ci(workflow): upgrade python workflow
1 parent a1e4a8e commit 493f2c5

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
21
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
32

43
name: Python package
@@ -7,7 +6,6 @@ on:
76
push:
87
branches: [main]
98
pull_request:
10-
branches: [main]
119

1210
jobs:
1311
build:
@@ -16,24 +14,21 @@ jobs:
1614
strategy:
1715
fail-fast: false
1816
matrix:
19-
python-version: ['3.7', '3.8', '3.9', '3.10']
17+
python-version: ['3.10', '3.11', '3.12', '3.13']
2018

2119
steps:
2220
- uses: actions/checkout@v3
23-
- name: Set up Python ${{ matrix.python-version }}
21+
- name: Set up Python ${{matrix.python-version}}
2422
uses: actions/setup-python@v3
2523
with:
26-
python-version: ${{ matrix.python-version }}
24+
python-version: ${{matrix.python-version}}
2725
- name: Install dependencies
2826
run: |
2927
python -m pip install --upgrade pip
30-
python -m pip install -r test-requirements.txt
31-
- name: Lint with flake8
28+
python -m pip install ruff
29+
- name: Lint with ruff
3230
run: |
33-
# stop the build if there are Python syntax errors or undefined names
34-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37-
- name: Test with unittest
31+
ruff check .
32+
- name: Test with pytest
3833
run: |
3934
python tests.py -v

0 commit comments

Comments
 (0)