Skip to content

Commit

Permalink
ci: use uv instead of tox
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m committed Sep 27, 2024
1 parent 396e3ee commit 722478f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ jobs:

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox

- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest tests
- name: Run flake8
run: uv run flake8 sked_parser tests

0 comments on commit 722478f

Please sign in to comment.