Skip to content

Commit

Permalink
Go back to pip...
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Sep 19, 2024
1 parent 44e22e8 commit 68c0382
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install uv
uv pip install --system flake8 pytest
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
if [ -f optional_requirements.txt ]; then uvpip install --system -r optional_requirements.txt; fi
uv pip install --system -e .
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f optional_requirements.txt ]; then pip install -r optional_requirements.txt; fi
pip install -e .
- name: Test with pytest
run: |
pytest
Expand Down

0 comments on commit 68c0382

Please sign in to comment.