Skip to content

Commit

Permalink
Test matrix (#137)
Browse files Browse the repository at this point in the history
* Add matrix testing for unittest

* Update changelog

* Updating unittest run condition

* Formatting

---------

Co-authored-by: Thijs Snelleman <[email protected]>
  • Loading branch information
hadarshavit and thijssnelleman authored Jan 10, 2025
1 parent a89580d commit bf1c10e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Unittest

on: [pull_request]
on:
pull_request:
paths:
- sparkle/**

jobs:
pytest:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ["3.10", "3.11", "3.12"]
services: # Required for Slurm cluster
mysql:
image: mysql:8.0
Expand All @@ -27,7 +32,7 @@ jobs:
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda install -y python=3.10.14 # https://github.com/conda/conda/issues/13560#issuecomment-1992720842
conda install -y python=${{ matrix.python-version }} # https://github.com/conda/conda/issues/13560#issuecomment-1992720842
conda env update --file dev-env.yml --name base
- name: Install RunSolver dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Notable changes to Sparkle will be documented in this file.
### Added
- Flushing completed jobs from jobs command by hitting spacebar [SPRK-313]

### Changed
- CI pipeline for unittest now tests for Python 3.10, 3.11 and 3.12

## [0.9.2] - 07/01/2025

### Fixed
Expand Down

0 comments on commit bf1c10e

Please sign in to comment.