File tree Expand file tree Collapse file tree 2 files changed +31
-23
lines changed
Expand file tree Collapse file tree 2 files changed +31
-23
lines changed Original file line number Diff line number Diff line change 1+ name : lint
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ branches :
8+ - main
9+ jobs :
10+ lint :
11+ name : Run linters
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ - name : Set up Python 3.12
17+ uses : actions/setup-python@v4
18+ with :
19+ python-version : " 3.12"
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install ".[dev]"
24+ - name : Run linters
25+ run : |
26+ # See pyproject.toml
27+ isort --line-length 100 ssspy tests
28+ flake8 --max-line-length=100 --ignore=E203,W503,W504 --exclude ssspy/_version.py ssspy tests
29+ - name : Run formatters
30+ run : |
31+ python -m black --config pyproject.toml --check ssspy tests
Original file line number Diff line number Diff line change 4646 uses : codecov/codecov-action@v3
4747 with :
4848 fail_ci_if_error : true
49- lint :
50- name : Run linters
51- runs-on : ubuntu-latest
52- if : inputs.python-version == '3.12' && inputs.os == 'ubuntu-latest'
53- steps :
54- - name : Checkout
55- uses : actions/checkout@v4
56- - name : Set up Python 3.12
57- uses : actions/setup-python@v4
58- with :
59- python-version : " 3.12"
60- - name : Install dependencies
61- run : |
62- python -m pip install --upgrade pip
63- pip install ".[dev]"
64- - name : Run linters
65- run : |
66- # See pyproject.toml
67- isort --line-length 100 ssspy tests
68- flake8 --max-line-length=100 --ignore=E203,W503,W504 --exclude ssspy/_version.py ssspy tests
69- - name : Run formatters
70- run : |
71- python -m black --config pyproject.toml --check ssspy tests
7249 upload_package :
7350 needs :
7451 - build
You can’t perform that action at this time.
0 commit comments