Skip to content

Commit 4286592

Browse files
committed
Revert action
1 parent c2ae165 commit 4286592

1 file changed

Lines changed: 7 additions & 22 deletions

File tree

.github/workflows/python-package.yml

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

4-
54
name: Python package
65

76
on:
87
push:
98
branches: ['main']
109
pull_request:
1110
branches: ['main']
12-
jobs:
13-
ruff:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
17-
- name: Set up Python 3.14
18-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
19-
with:
20-
python-version: '3.14'
21-
- name: Install Ruff
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install ruff
25-
- name: Ruff check
26-
run: |
27-
ruff check .
28-
- name: Ruff format check
29-
run: |
30-
ruff format --check .
31-
3211

12+
jobs:
3313
build:
34-
needs: ruff
3514
runs-on: ${{ matrix.os }}
3615
strategy:
3716
fail-fast: false
@@ -49,6 +28,12 @@ jobs:
4928
run: |
5029
python -m pip install --upgrade pip
5130
pip install .[test,nldi]
31+
- name: Lint with flake8
32+
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
5237
- name: Test with pytest and report coverage
5338
run: |
5439
coverage run -m pytest tests/

0 commit comments

Comments
 (0)