Skip to content

Commit 8288edb

Browse files
committed
Add a periodic check for the cache being up to date
1 parent 67677ee commit 8288edb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Check that the cached aliases are up to date
3+
4+
on:
5+
schedule:
6+
- cron: "44 4 */2 * *"
7+
pull_request:
8+
9+
jobs:
10+
tests:
11+
name: Run the integration/smoke tests
12+
runs-on: "ubuntu-latest"
13+
strategy:
14+
fail-fast: false
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.x"
21+
22+
- uses: actions/cache@v4
23+
with:
24+
path: ~/.cache/pypoetry/virtualenvs
25+
key: poetry-${{ hashFiles('poetry.lock') }}
26+
27+
- run: sudo pipx install poetry
28+
env:
29+
PIPX_BIN_DIR: /usr/bin
30+
31+
- name: Install dependencies
32+
run: poetry install
33+
34+
- name: Run the tests
35+
run: poetry run pytest -vv -k cache_up_to_date

0 commit comments

Comments
 (0)