Skip to content

Commit

Permalink
Tweak ci (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin authored Oct 18, 2024
1 parent 5211b70 commit 17bd167
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
with:
enable-cache: true

- run: uv python install 3.12

- name: Install dependencies
run: uv sync --python 3.12 --frozen

- run: make lint
- run: make typecheck
- run: make typecheck-mypy
- uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files --verbose
env:
SKIP: no-commit-to-branch

test:
name: test on ${{ matrix.python-version }}
Expand All @@ -46,13 +46,8 @@ jobs:
with:
enable-cache: true

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- run: uv sync --python ${{ matrix.python-version }} --upgrade

- run: mkdir coverage
- run: make test
- run: uv run --frozen --python ${{ matrix.python-version }} coverage run -m pytest
env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
- name: store coverage files
Expand Down Expand Up @@ -84,7 +79,7 @@ jobs:
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage.xml
- run: uv run --frozen coverage report --fail-under 70
- run: uv run --frozen coverage report --fail-under 90

# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
check:
Expand Down Expand Up @@ -113,8 +108,6 @@ jobs:
with:
enable-cache: true

- run: uv python install 3.12

- name: check GITHUB_REF matches package version
uses: samuelcolvin/check-python-version@v4.1
with:
Expand Down

0 comments on commit 17bd167

Please sign in to comment.