Skip to content

Commit e4593b8

Browse files
authored
ci: modernize build workflow (#11)
1 parent 3c560a3 commit e4593b8

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525

@@ -44,19 +44,18 @@ jobs:
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: Checkout
47-
uses: actions/checkout@v2
47+
uses: actions/checkout@v4
48+
49+
- name: Set up Python
50+
uses: actions/setup-python@v5
4851
with:
49-
fetch-depth: 0
52+
python-version: '3.12'
53+
54+
- name: Install black
55+
run: pip install "$(grep '^black==' requirements_dev.txt)"
5056

51-
- name: Super-Linter
52-
uses: github/super-linter@v4.9.2
53-
env:
54-
VALIDATE_ALL_CODEBASE: false
55-
VALIDATE_PYTHON_BLACK: true
56-
DEFAULT_BRANCH: master
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
LINTER_RULES_PATH: /
59-
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
57+
- name: Check formatting with black
58+
run: black --check --diff .
6059

6160
coveralls:
6261
name: Indicate completion to coveralls.io

requirements_dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-r requirements.txt
2-
setuptools==60.2.0
2+
setuptools==60.2.0
3+
black==25.1.0

0 commit comments

Comments
 (0)