Skip to content

Commit

Permalink
Merge pull request #20 from VowpalWabbit/run_matrix_ci
Browse files Browse the repository at this point in the history
matrix (os's and python versions) for unit tests
  • Loading branch information
olgavrou authored Oct 25, 2023
2 parents 575fa81 + 0f3fa89 commit 029114b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/black_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
black-check:
container:
Expand Down
25 changes: 19 additions & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,28 @@ on:
branches:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
python-unit-test:
container:
image: python:3.8
runs-on: ubuntu-latest
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Run Tests
shell: bash
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install .[dev]
- name: Run Tests
run: |
python -m pytest tests/

0 comments on commit 029114b

Please sign in to comment.