Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI/linter updates #22

Merged
merged 2 commits into from
Jun 18, 2024
Merged
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
3 changes: 2 additions & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- run: python -Im pip install --user ruff
# keep in sync with .pre-commit-config.yaml
- run: python -Im pip install --user ruff==0.4.9

- name: Run ruff
working-directory: ./src
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,15 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: ⬇️ Install dependencies
run: |
python -m pip install uv
python -m uv venv .venv
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
python -Im uv pip install flit tox tox-gh-actions
python -m pip install uv --quiet --upgrade
python -Im uv pip install --quiet --system --upgrade flit tox tox-gh-actions

- name: 🏗️ Build wheel
run: |
. .venv/bin/activate
python -Im flit build --format wheel

- name: 🧪 Run tox targets for Python ${{ matrix.python-version }}
run: |
. .venv/bin/activate
tox --installpkg ./dist/*.whl

- name: ⬆️ Upload coverage data
Expand Down Expand Up @@ -95,7 +90,7 @@ jobs:
# Use latest Python, so it understands all syntax.
python-version: ${{env.PYTHON_LATEST}}

- run: python -Im pip install --upgrade coverage
- run: python -Im pip install --quiet --upgrade coverage

- name: ⬇️ Download coverage data
uses: actions/download-artifact@v4
Expand Down
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -17,7 +17,8 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.0'
# keep in sync with .github/workflows/ruff.yml
rev: 'v0.4.9'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down