Skip to content

Commit

Permalink
UV
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Nov 14, 2024
1 parent 77fd4f0 commit 20f6975
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand All @@ -28,17 +23,18 @@ jobs:
conda env update --file .github/additional_files/environment.yml --name base
- name: Install package
run: |
pip install .
pip install uv
uv pip install --system .
- name: Install pre-commit
run: |
pip install pre-commit
uv pip install --system pre-commit
- name: Run pre-commit checks
run: |
pre-commit install
pre-commit run --all-files
- name: Test with pytest
run: |
pip install pytest
uv pip install --system pytest
pytest

0 comments on commit 20f6975

Please sign in to comment.