Skip to content

Commit 4cb269d

Browse files
committed
GHA: Change Python and CodeQL
Python workflow: * Exclude 3.7 on macos-latest * Use actions/checkout@v4 (migrated from @V3) * Enable Python 3.12, use action/setup-python@v5 * Use newer syntax of "tox run ..." CodeQL workflow: * Update to latest version @V3 * Not be triggered in master, but in release/* branches
1 parent d974788 commit 4cb269d

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master, maint/v2 ]
16+
branches: [ maint/v2, release/* ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: [ master ]
@@ -35,11 +35,11 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v2
42+
uses: github/codeql-action/init@v3
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
53+
uses: github/codeql-action/autobuild@v3
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v2
67+
uses: github/codeql-action/analyze@v3

.github/workflows/python-testing.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
can_run: ${{ steps.check_files.outputs.can_run }}
3636

3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
with:
4040
fetch-depth: 0
4141

@@ -77,9 +77,9 @@ jobs:
7777
if: ${{ needs.check-files.outputs.can_run == '1' }}
7878

7979
steps:
80-
- uses: actions/checkout@v3
80+
- uses: actions/checkout@v4
8181
- name: Set up Python ${{ matrix.python-version }}
82-
uses: actions/setup-python@v4
82+
uses: actions/setup-python@v5
8383
with:
8484
python-version: 3.8
8585
cache: 'pip'
@@ -89,11 +89,12 @@ jobs:
8989
pip install tox tox-gh-actions
9090
- name: Check
9191
run: |
92-
tox -e checks
92+
tox run -e checks
9393
9494
tests:
9595
needs: check
9696
runs-on: ${{ matrix.os }}
97+
continue-on-error: true
9798
strategy:
9899
max-parallel: 5
99100
fail-fast: true
@@ -103,14 +104,17 @@ jobs:
103104
"3.9",
104105
"3.10",
105106
"3.11",
106-
# "3.12-dev"
107+
"3.12",
107108
]
108-
os: [ubuntu-latest, "macos-latest"]
109+
os: ["ubuntu-latest", "macos-latest"]
110+
exclude:
111+
- os: "macos-latest"
112+
python-version: "3.7"
109113

110114
steps:
111-
- uses: actions/checkout@v3
115+
- uses: actions/checkout@v4
112116
- name: Set up Python ${{ matrix.python-version }} for ${{ matrix.os }}
113-
uses: actions/setup-python@v4
117+
uses: actions/setup-python@v5
114118
with:
115119
python-version: ${{ matrix.python-version }}
116120
cache: 'pip'
@@ -120,4 +124,4 @@ jobs:
120124
pip install tox tox-gh-actions
121125
- name: Test with tox
122126
run: |
123-
tox
127+
tox run

0 commit comments

Comments
 (0)