Skip to content

Commit 53ed031

Browse files
committed
CI: Update test workflow with narrower job spec, more Python versions, concurrency
1 parent d2d5583 commit 53ed031

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
name: Test suite
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "*"
9+
pull_request:
10+
branches:
11+
- master
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
417

518
jobs:
619
build:
@@ -9,13 +22,13 @@ jobs:
922
strategy:
1023
max-parallel: 4
1124
matrix:
12-
python-version: [3.7, 3.8]
25+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
1326

1427
steps:
1528
- name: Checkout repo
16-
uses: actions/checkout@v1
29+
uses: actions/checkout@v3
1730
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v1
31+
uses: actions/setup-python@v4
1932
with:
2033
python-version: ${{ matrix.python-version }}
2134
- name: Install

0 commit comments

Comments
 (0)