Skip to content

Commit

Permalink
Add parallel job using pymc3 from dev repo
Browse files Browse the repository at this point in the history
  • Loading branch information
fanshi118 committed May 11, 2021
1 parent 7da76e3 commit 442b130
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,34 @@ jobs:
- name: Check coverage
run: |
diff-cover ./coverage.xml --compare-branch=origin/main --fail-under=100 --diff-range-notation '..'
python-tests-pymc3-dev:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip uninstall pymc3
pip install git+https://github.com/pymc-devs/pymc3.git
- name: Test with pytest
run: |
pytest tests --cov=pymc3_hmm --cov-report=xml:./coverage.xml
- name: Fetch main for coverage diff
run: |
git fetch --no-tags --prune origin main
- name: Check coverage
run: |
diff-cover ./coverage.xml --compare-branch=origin/main --fail-under=100 --diff-range-notation '..'

0 comments on commit 442b130

Please sign in to comment.