Skip to content

Commit e8c482e

Browse files
authored
Update deprecated GitHub Actions and add Python versions (#408)
Running 6 different Python versions (3.7 to 3.12) in parallel now. NOTE: This is in conflict with #309, but can be resolved easily in a later PR. GitHub Actions require an update: - actions/upload-artifact@v3 is scheduled for deprecation on November 30, 2024. - Similarly, v1/v2 are scheduled for deprecation on June 30, 2024. - Updating this comes with a breaking change in upload-artifact@v4: Uploading to the same named Artifact multiple times. Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you will encounter an error. The artifact .zip files therefore have the python version added to their name.
1 parent 1c4fd68 commit e8c482e

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/main.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,32 @@ on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
87
strategy:
9-
max-parallel: 4
8+
max-parallel: 6
109
matrix:
11-
python-version: [3.7, 3.8]
10+
os: [ubuntu-latest]
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
12+
runs-on: ${{ matrix.os }}
1213
steps:
13-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1415
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1617
with:
1718
python-version: ${{ matrix.python-version }}
1819
- name: Setup Graphviz
19-
uses: ts-graphviz/setup-graphviz@v1
20+
uses: ts-graphviz/setup-graphviz@v2
2021
- name: Install dependencies
2122
run: |
2223
python -m pip install --upgrade pip
2324
pip install .
2425
- name: Create Examples
25-
run: PYTHONPATH=$(pwd)/src:$PYTHONPATH cd src/wireviz/ && python build_examples.py
26+
run: PYTHONPATH=$(pwd)/src/wireviz:$PYTHONPATH cd src/wireviz/ && python build_examples.py
2627
- name: Upload examples, demos, and tutorials
27-
uses: actions/upload-artifact@v2
28+
uses: actions/upload-artifact@v4
2829
with:
29-
name: examples-and-tutorials
30+
name: examples-and-tutorials-v${{ matrix.python-version }}
3031
path: |
3132
examples/
32-
tutorial/
33+
tutorial/
34+
if-no-files-found: error
35+

0 commit comments

Comments
 (0)