Skip to content

Commit

Permalink
test old pymc
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Aug 20, 2024
1 parent 0c3b93b commit 85b491f
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 85b491f

Please sign in to comment.