Skip to content

Commit 36676ab

Browse files
authored
Update github actions (gijzelaerr#443)
1 parent ecf82b2 commit 36676ab

11 files changed

Lines changed: 61 additions & 51 deletions

File tree

.github/workflows/build-and-test-arm64.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616

1717
- name: Cache snap7-archive
1818
id: snap7-archive
19-
uses: actions/cache@v2
19+
uses: actions/cache@v3
2020
with:
2121
path: snap7-full-1.4.2.7z
2222
key: ${{ env.snap7-archive-url }}
@@ -37,7 +37,7 @@ jobs:
3737
cp .github/build_scripts/aarch64-linux-gnu.mk snap7-full-1.4.2/build/unix/
3838
3939
- name: Set up QEMU
40-
uses: docker/setup-qemu-action@v1
40+
uses: docker/setup-qemu-action@v2
4141
with:
4242
platforms: arm64
4343

@@ -61,7 +61,7 @@ jobs:
6161
run: bash .github/build_scripts/repack_wheel.sh wheelhouse dist wheelhouse/${{ runner.os }}
6262

6363
- name: Upload artifacts
64-
uses: actions/upload-artifact@v2
64+
uses: actions/upload-artifact@v3
6565
with:
6666
name: wheels
6767
path: wheelhouse/*/*.whl
@@ -75,16 +75,16 @@ jobs:
7575
python-version: ["3.7", "3.8", "3.9", "3.10"]
7676
steps:
7777
- name: Checkout
78-
uses: actions/checkout@v2
78+
uses: actions/checkout@v3
7979

8080
- name: Download artifacts
81-
uses: actions/download-artifact@v2
81+
uses: actions/download-artifact@v3
8282
with:
8383
name: wheels
8484
path: wheelhouse
8585

8686
- name: Set up QEMU
87-
uses: docker/setup-qemu-action@v1
87+
uses: docker/setup-qemu-action@v2
8888
with:
8989
platforms: arm64
9090

.github/workflows/build-and-test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
runs-on: windows-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616

1717
- name: Install choco packages
1818
run: choco install --allow-downgrade wget --version 1.20.3.20190531
1919

2020
- name: Cache snap7-archive
2121
id: snap7-archive
22-
uses: actions/cache@v2
22+
uses: actions/cache@v3
2323
with:
2424
path: snap7-full-1.4.2.7z
2525
key: ${{ env.snap7-archive-url }}
@@ -42,7 +42,7 @@ jobs:
4242
run: .github/build_scripts/repack_wheel_windows.ps1 Win64 wheelhouse/${{ runner.os }}
4343

4444
- name: Upload artifacts
45-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v3
4646
with:
4747
name: wheels
4848
path: wheelhouse/*/*.whl
@@ -52,11 +52,11 @@ jobs:
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: Checkout
55-
uses: actions/checkout@v2
55+
uses: actions/checkout@v3
5656

5757
- name: Cache snap7-archive
5858
id: snap7-archive
59-
uses: actions/cache@v2
59+
uses: actions/cache@v3
6060
with:
6161
path: snap7-full-1.4.2.7z
6262
key: ${{ env.snap7-archive-url }}
@@ -94,7 +94,7 @@ jobs:
9494
run: bash .github/build_scripts/repack_wheel.sh wheelhouse dist wheelhouse/${{ runner.os }}
9595

9696
- name: Upload artifacts
97-
uses: actions/upload-artifact@v2
97+
uses: actions/upload-artifact@v3
9898
with:
9999
name: wheels
100100
path: wheelhouse/*/*.whl
@@ -104,11 +104,11 @@ jobs:
104104
runs-on: macos-11
105105
steps:
106106
- name: Checkout
107-
uses: actions/checkout@v2
107+
uses: actions/checkout@v3
108108

109109
- name: Cache snap7-archive
110110
id: snap7-archive
111-
uses: actions/cache@v2
111+
uses: actions/cache@v3
112112
with:
113113
path: snap7-full-1.4.2.7z
114114
key: ${{ env.snap7-archive-url }}
@@ -153,7 +153,7 @@ jobs:
153153
run: bash .github/build_scripts/repack_wheel.sh wheelhouse dist wheelhouse/${{ runner.os }}
154154

155155
- name: Upload artifacts
156-
uses: actions/upload-artifact@v2
156+
uses: actions/upload-artifact@v3
157157
with:
158158
name: wheels
159159
path: wheelhouse/*/*.whl
@@ -168,10 +168,10 @@ jobs:
168168
python-version: ["3.7", "3.8", "3.9", "3.10"]
169169
steps:
170170
- name: Checkout
171-
uses: actions/checkout@v2
171+
uses: actions/checkout@v3
172172

173173
- name: Set up Python ${{ matrix.python-version }}
174-
uses: actions/setup-python@v2
174+
uses: actions/setup-python@v4
175175
with:
176176
python-version: ${{ matrix.python-version }}
177177

@@ -181,7 +181,7 @@ jobs:
181181
python3 -m pip install pytest
182182
183183
- name: Download artifacts
184-
uses: actions/download-artifact@v2
184+
uses: actions/download-artifact@v3
185185
with:
186186
name: wheels
187187
path: wheelhouse

.github/workflows/doc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Doc
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
6-
branches: [ master ]
6+
branches: [master]
77
jobs:
88
build:
99
runs-on: ubuntu-20.04
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
- name: Install Debian packages
1414
run: |
1515
sudo apt-get update -qq

.github/workflows/docker.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
name: Create and publish a package
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
5+
env:
6+
REGISTRY: ghcr.io
7+
IMAGE_NAME: ${{ github.repository }}
58
jobs:
69
build-and-push-image:
710
runs-on: ubuntu-latest
811
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v2
12+
- name: Extract metadata (tags, labels) for Docker
13+
id: meta
14+
uses: docker/metadata-action@v4
15+
with:
16+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
1117

12-
- name: Build container image
13-
uses: docker/build-push-action@v1
18+
- name: Login to GitHub Container Registry
19+
uses: docker/login-action@v2
1420
with:
21+
registry: ${{ env.REGISTRY }}
1522
username: ${{ github.actor }}
1623
password: ${{ secrets.GITHUB_TOKEN }}
17-
registry: docker.pkg.github.com
18-
repository: ${{ github.repository }}/base
19-
tag_with_sha: true
20-
tag_with_ref: true
24+
25+
- name: Build container image
26+
uses: docker/build-push-action@v4
27+
with:
28+
push: true
29+
tags: ${{ steps.meta.outputs.tags }}
30+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/flake8.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Flake8
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
6-
branches: [ master ]
6+
branches: [master]
77
jobs:
88
build:
99
runs-on: ubuntu-20.04
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
- name: Install Debian packages
1414
run: |
1515
sudo apt-get update -qq

.github/workflows/linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
- name: Install Debian packages
1717
run: |
1818
sudo apt-get update -qq
1919
sudo apt-get install -y software-properties-common
2020
sudo add-apt-repository -y ppa:gijzelaar/snap7
2121
sudo apt-get update -qq
2222
sudo apt-get install -y libsnap7-dev libsnap7-1
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v4
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install dependencies

.github/workflows/mypy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Mypy
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
6-
branches: [ master ]
6+
branches: [master]
77
jobs:
88
build:
99
runs-on: ubuntu-20.04
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
- name: Install Debian packages
1414
run: |
1515
sudo apt-get update -qq

.github/workflows/osx.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: OS X Test
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
6-
branches: [ master ]
6+
branches: [master]
77
jobs:
88
osx_wheel:
99
runs-on: macos-11
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
- name: Install snap7
1414
run: brew install snap7
1515
- name: Upgrade pip

.github/workflows/pycodestyle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Pycodestyle
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
6-
branches: [ master ]
6+
branches: [master]
77
jobs:
88
build:
99
runs-on: ubuntu-20.04
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
- name: Install Debian packages
1414
run: |
1515
sudo apt-get update -qq

.github/workflows/test-pypi-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
python-version: ["3.7", "3.8", "3.9", "3.10"]
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313

1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v4
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818

0 commit comments

Comments
 (0)