Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkoehler committed Feb 15, 2024
1 parent 4b9e3fe commit f8eba8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-venv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
using: composite
steps:
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

Expand All @@ -26,7 +26,7 @@ runs:
# Get the exact Python version to use in the cache key.
echo "PYTHON_VERSION=$(python --version)" >> $GITHUB_ENV
- uses: actions/cache@v2
- uses: actions/cache@v4
id: virtualenv-cache
with:
path: .venv
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:

jobs:
tests:
name: Python ${{ matrix.python }} - ${{ matrix.task.name }}
name: ${{ matrix.os }} - Python ${{ matrix.python }} - ${{ matrix.id }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
Expand All @@ -37,29 +37,24 @@ jobs:
# os: [windows-latest, ubuntu-latest, macos-latest]
# run: |
# pytest -v --color=yes tests/

- id: 1
task:
name: Build
run: hatch build

- id: 2
task:
name: Pre-commit
run: |
pip install pre-commit
pre-commit run --all-files
- id: 3
task:
name: Lint
run: ruff check .

- id: 4
task:
name: Type check
run: mypy .

- id: 5
task:
name: Style
Expand Down

0 comments on commit f8eba8c

Please sign in to comment.