Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@c8813ba1bc76ebf779b911ad8ffccbf2e449cb48
with:
python-version: '3.11'
cache: 'pip'
Expand All @@ -34,4 +34,4 @@ jobs:
- name: Build package
run: hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247
8 changes: 4 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@c8813ba1bc76ebf779b911ad8ffccbf2e449cb48
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand All @@ -40,7 +40,7 @@ jobs:
python -m pip install hatch

- name: Formatting
uses: famedly/black@stable
uses: famedly/black@6af7d1109693c4ad3af08ecbc34649c232b47a6d

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we use a fork of black, should we move to using the upstream gh action?

with:
options: "--check --verbose"

Expand All @@ -49,15 +49,15 @@ jobs:
run: echo PYTHON_TARGET="py${{ matrix.python-version }}" | sed -r "s/\.//" >> $GITHUB_ENV

- name: Lint
uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b
uses: chartboost/ruff-action@1ec810db51b3ebdd902c812e962d2f7aafe85fcf
with:
args: check --target-version ${{ env.PYTHON_TARGET }}

- name: Tests and coverage
run: hatch test -p -c

- name: Codecov - Upload coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@ca0a928a4cb3911011e868128a5cd90437c12db1
with:
token: ${{secrets.CODECOV_TOKEN}}
files: "lcov.info"
Loading