Skip to content

Commit

Permalink
Try caching downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
bputzeys committed May 23, 2024
1 parent 03fc91a commit 7e7d307
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ jobs:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.11 #install the python needed
python-version: 3.11.8
cache: 'pip' # caching pip dependencies

- name: Cache download files
uses: actions/cache@v3
with:
path: /home/runner/.cache/helical
key: ${{ runner.os }}-downloads-${{ hashFiles('**/ci/download_all.py') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -29,9 +36,15 @@ jobs:
- name: Download all files
run: |
python ci/download_all.py
- name: DEBUG
run: |
ls -ltr /home/runner/.cache/helical
- name: Execute unittests
run: |
pytest --cov-branch --cov=. ci/ --cov-report=term
pytest --cov-branch --cov=helical ci/ --cov-report=term
# Does not seem to work but would be nice to have
# - name: Pytest coverage comment
Expand Down

0 comments on commit 7e7d307

Please sign in to comment.