Skip to content

Commit eac47c9

Browse files
committed
Update GH workflow
1 parent 35bc041 commit eac47c9

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
22
version: 2
33
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: monthly
48
- package-ecosystem: pip
59
directory: /
610
schedule:

.github/workflows/workflow.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
# https://github.com/pre-commit/action
99
pre-commit:
1010
name: Lint
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v2
15-
- uses: pre-commit/action@v2.0.0
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
- uses: pre-commit/action@v3.0.1
1616

1717
test:
1818
name: Test
@@ -25,27 +25,17 @@ jobs:
2525
- '3.10'
2626
env:
2727
PACKER_VERSION: 1.6.1
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-24.04
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v5
3333
with:
3434
python-version: ${{ matrix.python-version }}
35-
- name: Cache pip
36-
id: cache
37-
uses: actions/cache@v2
38-
with:
39-
# This path is specific to Ubuntu
40-
path: ~/.cache/pip
41-
# Look to see if there is a cache hit for the corresponding requirements file
42-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
43-
restore-keys: |
44-
${{ runner.os }}-pip-
45-
${{ runner.os }}-
35+
cache: pip
4636
- name: Cache packer
4737
id: cachepacker
48-
uses: actions/cache@v2
38+
uses: actions/cache@v4
4939
with:
5040
path: ~/bin
5141
key: ${{ runner.os }}-packer-${{ env.PACKER_VERSION }}

0 commit comments

Comments
 (0)