Skip to content

Commit ffbc64c

Browse files
committed
Update GHAs to use latest actions, latest macOS, remove caching
1 parent 2ff2a03 commit ffbc64c

2 files changed

Lines changed: 13 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [ubuntu-latest, macos-13, windows-latest]
16+
os: [ubuntu-latest, macos-latest, windows-latest]
1717
python-version: ["3.9", "3.10", "3.11", "3.12"]
1818
defaults:
1919
run:
2020
shell: bash
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424
- name: Set up Python ${{ matrix.python-version }}
2525
id: setup-python
26-
uses: actions/setup-python@v5
26+
uses: actions/setup-python@v6
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Install Poetry
@@ -32,14 +32,7 @@ jobs:
3232
virtualenvs-create: true
3333
virtualenvs-in-project: true
3434
installer-parallel: true
35-
- name: Load cached venv
36-
id: cached-poetry-dependencies
37-
uses: actions/cache@v4
38-
with:
39-
path: .venv
40-
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
4135
- name: Install dependencies
42-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
4336
run: poetry install --no-interaction --no-root
4437
- name: Install machine
4538
run: poetry install --no-interaction
@@ -50,7 +43,7 @@ jobs:
5043
- name: Lint with isort
5144
run: poetry run isort . --check-only
5245
- name: Setup Node for pyright
53-
uses: actions/setup-node@v4
46+
uses: actions/setup-node@v6
5447
with:
5548
node-version: "14"
5649
- name: Lint with pyright
@@ -72,10 +65,10 @@ jobs:
7265
runs-on: ubuntu-latest
7366

7467
steps:
75-
- uses: actions/checkout@v4
68+
- uses: actions/checkout@v6
7669
- name: Set up Python 3.9
7770
id: setup-python
78-
uses: actions/setup-python@v5
71+
uses: actions/setup-python@v6
7972
with:
8073
python-version: "3.9"
8174
- name: Install Poetry
@@ -84,16 +77,10 @@ jobs:
8477
virtualenvs-create: true
8578
virtualenvs-in-project: true
8679
installer-parallel: true
87-
- name: Load cached venv
88-
id: cached-poetry-dependencies
89-
uses: actions/cache@v4
90-
with:
91-
path: .venv
92-
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
9380
- name: Build
9481
run: poetry build
9582
- name: Upload package
96-
uses: actions/upload-artifact@v4
83+
uses: actions/upload-artifact@v5
9784
with:
9885
name: wheel
9986
path: dist/*.whl

.github/workflows/docker-build-push.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,28 @@ jobs:
2626
with:
2727
docker-images: false
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v6
3030
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@v2
31+
uses: docker/setup-qemu-action@v3
3232
- name: Generate Docker metadata
3333
id: meta
34-
uses: docker/metadata-action@v4
34+
uses: docker/metadata-action@v5
3535
with:
3636
images: ghcr.io/sillsdev/machine.py
3737
tags: |
3838
type=match,pattern=docker_(.*),group=1
3939
flavor: |
4040
latest=true,suffix=${{ matrix.suffix }},onlatest=true
4141
- name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v2
42+
uses: docker/setup-buildx-action@v3
4343
- name: Login to GitHub Container Registry
44-
uses: docker/login-action@v2
44+
uses: docker/login-action@v3
4545
with:
4646
registry: ghcr.io
4747
username: ${{ github.repository_owner }}
4848
password: ${{ secrets.GITHUB_TOKEN }}
4949
- name: Build and push
50-
uses: docker/build-push-action@v4
50+
uses: docker/build-push-action@v6
5151
with:
5252
context: .
5353
file: ${{ matrix.dockerfile }}

0 commit comments

Comments
 (0)