-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,31 +20,39 @@ jobs: | |
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
os: ["ubuntu-latest", "macos-latest"] | ||
pymc-version: ["latest"] | ||
include: | ||
- os: ubuntu-latest | ||
pymc-version: "5.0.0" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: "Install hdf5 for tables (linux)" | ||
if: runner.os == 'ubuntu-latest' | ||
run: sudo apt-get install libhdf5-serial-dev | ||
|
||
- name: "Install hdf5 for tables (linux)" | ||
if: runner.os == 'ubuntu-latest' | ||
run: sudo apt-get install libhdf5-serial-dev | ||
- name : "Install hdf5 for tables (mac)" | ||
if: runner.os == 'macos-latest' | ||
run: brew install hdf5 | ||
|
||
- name : "Install hdf5 for tables (mac)" | ||
if: runner.os == 'macos-latest' | ||
run: brew install hdf5 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -e .[test] | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -e .[test] | ||
- name: Correct pymc version | ||
if: matrix.pymc-version != 'latest' | ||
run: | | ||
python -m pip install pymc==${{ matrix.pymc-version }} | ||
- name: Test package | ||
run: >- | ||
python -m pytest -ra --cov --cov-report=xml --cov-report=term --durations=20 | ||
- name: Test package | ||
run: >- | ||
python -m pytest -ra --cov --cov-report=xml --cov-report=term --durations=20 | ||
- name: Upload coverage report | ||
uses: codecov/[email protected] | ||
- name: Upload coverage report | ||
uses: codecov/[email protected] |