Skip to content

Commit c668bb3

Browse files
committed
MNT: Release on tags
1 parent 7ff9b28 commit c668bb3

File tree

1 file changed

+29
-20
lines changed

1 file changed

+29
-20
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
11
name: Github Actions
22

3-
on:
4-
push:
3+
on:
4+
push:
55
branches:
66
- "master"
7-
pull_request:
8-
7+
tags:
8+
- "*"
9+
pull_request:
910
jobs:
1011
test:
1112
runs-on: ${{ matrix.os }}
1213
strategy:
1314
matrix:
1415
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
15-
os: [ubuntu-18.04, ubuntu-latest, macos-latest, windows-latest, windows-2022, macos-10.15]
16+
os:
17+
[
18+
ubuntu-18.04,
19+
ubuntu-latest,
20+
macos-latest,
21+
windows-latest,
22+
windows-2022,
23+
macos-10.15,
24+
]
1625
steps:
17-
- uses: actions/checkout@v2
18-
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
24-
- name: Install as develop
25-
run: |
26-
pip install -e .
27-
28-
- name: Test with pytest
29-
run: |
30-
pip install pytest
31-
pytest
26+
- uses: actions/checkout@v2
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install as develop
34+
run: |
35+
pip install -e .
36+
37+
- name: Test with pytest
38+
run: |
39+
pip install pytest
40+
pytest
3241
3342
build_win_mac:
3443
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)