Skip to content

Commit

Permalink
CI: Change test strategy from fail-fast to run always
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed May 13, 2024
1 parent 2654a8a commit b8d8feb
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: CI

on:
push:
Expand All @@ -23,14 +23,33 @@ jobs:
pip install pre-commit
pre-commit run --all-files
Linux:
Docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Set up Python"
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install doc dependencies
run: |
sudo apt-get update -y
sudo apt-get install pandoc
sudo apt-get update -y
pip install -e .[docs]
- name: Build docs
run: |
cd docs
python -m sphinx -T -E -W -b html -d _build/doctrees . _build/html
Tests:
needs: Linting
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ["3.9", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -41,15 +60,6 @@ jobs:
run: |
pip install --upgrade pip
pip install .[dev,miosr,cvxpy,sbr]
- name: Build the docs
# Not exactly how RTD does it, but close.
run: |
sudo apt-get update -y
sudo apt-get install pandoc
pip install .[docs]
cd docs
python -m sphinx -T -E -W -b html -d _build/doctrees . _build/html
cd ..
- name: Test with pytest
run: |
coverage run --source=pysindy -m pytest test -m "not slow" && coverage xml
Expand Down

0 comments on commit b8d8feb

Please sign in to comment.