Skip to content

Commit e567a29

Browse files
committed
matrix
1 parent 15aa55a commit e567a29

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
name: Workflow for Codecov example-python
22
on: [push, pull_request, workflow_dispatch]
33
jobs:
4+
45
run:
5-
runs-on: ubuntu-latest
6+
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
# fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, windows-latest, macos-latest]
13+
python-version: ["3.7", "3.8", "3.9"]
14+
615
steps:
716
- name: Checkout
817
uses: actions/checkout@v2
9-
- name: Set up Python 3.9
18+
- name: Set up Python ${{ matrix.python-version }}
1019
uses: actions/setup-python@v2
1120
with:
12-
python-version: 3.9
21+
python-version: ${{ matrix.python-version }}
22+
1323
- name: Install dependencies
1424
run: pip install -r requirements.txt
1525
- name: Run tests and collect coverage

0 commit comments

Comments
 (0)