Skip to content

Commit

Permalink
Merge pull request #499 from dynamicslab/trapping_extended-jake
Browse files Browse the repository at this point in the history
Align projection tensor calculations with master
  • Loading branch information
Jacob-Stevens-Haas authored May 26, 2024
2 parents 90e0f75 + 3dd8ea2 commit 7126b0e
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 173 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
3 changes: 3 additions & 0 deletions examples/8_trapping_sindy_examples/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dysts
sympy
pymech
Loading

0 comments on commit 7126b0e

Please sign in to comment.