Skip to content

Commit

Permalink
Merge pull request #1196 from twm/cache-python
Browse files Browse the repository at this point in the history
- Use actions/setup-python caching
- Build with Ubuntu 24.04
  • Loading branch information
twm authored Jul 2, 2024
2 parents 9573ce1 + be53089 commit 4a41f2e
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
tox-env: ["test", "lint"]

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
env:
TOXENV: "${{ matrix.tox-env }}"
RUFF_OUTPUT_FORMAT: "github"
Expand All @@ -25,15 +25,10 @@ jobs:
- uses: actions/[email protected]
with:
python-version: "3.9"

- name: pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: "${{ runner.os }}-pip-${{ matrix.tox-env }}-${{ hashFiles('tox.ini') }}"
restore-keys: |
${{ runner.os }}-pip-${{ matrix.tox-env }}-
${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: |
requirements.txt
requirements_*.txt
- run: "python -m pip install tox"

Expand All @@ -50,7 +45,7 @@ jobs:
webpack:
name: "tox -e static"

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -63,15 +58,9 @@ jobs:
- uses: actions/[email protected]
with:
python-version: "3.9"

- name: pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: "${{ runner.os }}-pip-static-${{ hashFiles('tox.ini') }}"
restore-keys: |
${{ runner.os }}-pip-static-
${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: |
requirements_static.txt
- run: "python -m pip install tox"

Expand Down

0 comments on commit 4a41f2e

Please sign in to comment.