Skip to content

Commit

Permalink
CI testing on all OSes and more python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalinmayor committed Feb 14, 2024
1 parent 453ce45 commit a18738b
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
name: Test

on: [push, pull_request]
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install .
pip install -r requirements-dev.txt
- name: Test with pytest
run: |
pytest tests
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements-dev.txt
- name: Test
run: pytest tests -s -v --color=yes

0 comments on commit a18738b

Please sign in to comment.