Update download tests to match cache process.

pull/286/head
erinhmclark 2025-03-31 11:17:40 +01:00
rodzic 6c7f6af4b4
commit 1edfdae03e
1 zmienionych plików z 11 dodań i 5 usunięć

Wyświetl plik

@ -22,17 +22,23 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies - name: Cache Poetry and pip artifacts
uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: poetry-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies from source only
run: poetry install --no-interaction --with dev run: poetry install --no-interaction --with dev
env:
PIP_NO_BINARY: ":all:"
- name: Run Download Tests - name: Run Download Tests
run: poetry run pytest -ra -v -x -m "download" run: poetry run pytest -ra -v -x -m "download"