Skip to content

Commit

Permalink
ci: fix remaining ci
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Dec 23, 2024
1 parent af596d5 commit 6459ea1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/check_benchmark_is_up_to_date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"

- name: Install dependencies
shell: bash
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- uses: actions/setup-python@v5
with:
python-version: '3.10'
# - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
# - uses: actions/cache@v3
# with:
# key: mkdocs-material-${{ env.cache_id }}
# path: .cache
# restore-keys: |
# mkdocs-material-

- name: Dependencies
run: |
python -m pip install --upgrade pip
pip install torch==2.0.1
pip install -e .[docs]
run: make install

- name: Build and Deploy
if: github.event_name == 'push'
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ run-benchmark:
check-benchmark-is-up-to-date:
@echo "--- 🔄 Checking benchmark is up to date ---"

python src/scripts/check_benchmark_is_up_to_date.py
uv run python src/scripts/check_benchmark_is_up_to_date.py

0 comments on commit 6459ea1

Please sign in to comment.