Skip to content

Commit 029114b

Browse files
authored
Merge pull request #20 from VowpalWabbit/run_matrix_ci
matrix (os's and python versions) for unit tests
2 parents 575fa81 + 0f3fa89 commit 029114b

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.github/workflows/black_checker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- '*'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
black-check:
1317
container:

.github/workflows/unit_tests.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,28 @@ on:
88
branches:
99
- '*'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
12-
python-unit-test:
13-
container:
14-
image: python:3.8
15-
runs-on: ubuntu-latest
16+
build:
17+
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [ubuntu-latest, macos-latest, windows-latest]
23+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1624
steps:
1725
- uses: actions/checkout@v2
18-
- name: Run Tests
19-
shell: bash
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
- name: Install
2031
run: |
2132
pip install .[dev]
33+
- name: Run Tests
34+
run: |
2235
python -m pytest tests/

0 commit comments

Comments
 (0)