Skip to content

Commit

Permalink
update workflow testing multiple python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Jan 6, 2024
1 parent 81a0a7b commit e8d1532
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,23 @@ jobs:

runs-on: ubuntu-20.04 # specifically calls the version number instead of lastest to work on 'act'

strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ['3.9', '3.10', '3.11', 3.12']

name: Python (${{ matrix.python-version }} on ${{ matrix.os }})
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True
pip install -r requirements.txt
- name: Test with pytest
run: |
python3 -m pytest
python -m pytest

0 comments on commit e8d1532

Please sign in to comment.