Skip to content

Commit eaf88f9

Browse files
authored
Improve GitHub Action workflow (#214)
* Include the Python version in step names * Print code formatting changes Black would make * Add GitHub Action changes to CHANGELOG.md
1 parent f37c2f1 commit eaf88f9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
poetry lock
3232
poetry install
3333
fi
34-
- name: Pylint
34+
- name: Pylint (Python v${{ matrix.python-version }})
3535
run: poetry run pylint functional
36-
- name: black
37-
run: poetry run black --check functional
36+
- name: black (Python v${{ matrix.python-version }})
37+
run: poetry run black --diff --check functional
3838
if: always()
39-
- name: Test with pytest
39+
- name: Test with pytest (Python v${{ matrix.python-version }})
4040
run: poetry run pytest --cov=functional --cov-report=xml
4141
if: always()
42-
- name: mypy
42+
- name: mypy (Python v${{ matrix.python-version }})
4343
run: poetry run mypy functional
4444
if: always()
4545
- uses: codecov/codecov-action@v1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Release 1.6
44

5+
- Added Python version to GitHub Action workflow job steps and set Black to show required formatting changes
56
- Upgraded pre-commit hooks (pre-commit-hooks to `v5.0.0` and ruff-pre-commit to `v0.6.0`)
67
- Added [run-test.sh](run-tests.sh) script that runs all checks on code
78
- Added support for Python 3.12 and 3.13 by upgrading Pylint and disabling/fixing Pylint errors

0 commit comments

Comments
 (0)