Skip to content

Commit

Permalink
Improve GitHub Action workflow (#214)
Browse files Browse the repository at this point in the history
* Include the Python version in step names

* Print code formatting changes Black would make

* Add GitHub Action changes to CHANGELOG.md
  • Loading branch information
samer-hamood authored Jan 28, 2025
1 parent f37c2f1 commit eaf88f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
poetry lock
poetry install
fi
- name: Pylint
- name: Pylint (Python v${{ matrix.python-version }})
run: poetry run pylint functional
- name: black
run: poetry run black --check functional
- name: black (Python v${{ matrix.python-version }})
run: poetry run black --diff --check functional
if: always()
- name: Test with pytest
- name: Test with pytest (Python v${{ matrix.python-version }})
run: poetry run pytest --cov=functional --cov-report=xml
if: always()
- name: mypy
- name: mypy (Python v${{ matrix.python-version }})
run: poetry run mypy functional
if: always()
- uses: codecov/codecov-action@v1
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Release 1.6

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

0 comments on commit eaf88f9

Please sign in to comment.