99 pull_request :
1010 branches : ['main']
1111
12+ permissions :
13+ contents : read
14+
1215jobs :
16+ ruff :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
21+ with :
22+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
23+ - name : Set up Python 3.14
24+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
25+ with :
26+ python-version : ' 3.14'
27+ cache : pip
28+ cache-dependency-path : pyproject.toml
29+ - name : Install Ruff
30+ run : python -m pip install --upgrade pip ruff
31+ - name : Ruff check
32+ run : ruff check .
33+ - name : Ruff format check
34+ run : ruff format --check .
35+
1336 build :
37+ needs : ruff
1438 runs-on : ${{ matrix.os }}
1539 strategy :
1640 fail-fast : false
@@ -20,20 +44,18 @@ jobs:
2044
2145 steps :
2246 - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
47+ with :
48+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
2349 - name : Set up Python ${{ matrix.python-version }}
2450 uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
2551 with :
2652 python-version : ${{ matrix.python-version }}
53+ cache : pip
54+ cache-dependency-path : pyproject.toml
2755 - name : Install dependencies
2856 run : |
2957 python -m pip install --upgrade pip
3058 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
3759 - name : Test with pytest and report coverage
3860 run : |
3961 coverage run -m pytest tests/
0 commit comments