Skip to content

Commit

Permalink
Update check-and-ebook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed May 18, 2024
1 parent 5d2a65b commit 77ae94e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/check-and-ebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,24 @@ jobs:
- name: Calculate hash on chapters/*.tex
id: calculate-hash
run: |
# current_date=$(date -u '+%Y-%m-%d')
branch=${{ github.ref_name }}
hashed=${{ hashFiles('chapters/*.tex') }}
echo "hash=${branch}-${hashed}" >> $GITHUB_OUTPUT
echo "hash=${{ hashFiles('chapters/*.tex') }}" >> $GITHUB_OUTPUT
touch hash-chapters.txt
- name: Cache lookup
id: cache-lookup
uses: actions/cache@v4
with:
path: hash-chapters.txt
key: chapter-hash-for-ebook-${{ steps.calculate-hash.outputs.hash }}
key: chapter-hash-for-ebook-${{ github.ref_name }}-${{ steps.calculate-hash.outputs.hash }}

- name: Python set up
uses: actions/setup-python@v5
with:
python-version: "3.12"
# no packages installed, so no caching
# no packages besides pytest installed, so no caching needed
# cache: "pip"

- name: Install and run pytest
- name: Run pytest unittests
run: |
pip install pytest
pytest
Expand Down

0 comments on commit 77ae94e

Please sign in to comment.