Skip to content

Commit

Permalink
Added new CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Jul 24, 2024
1 parent a1d4988 commit 00258d6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python "3.8"
- name: Set up Python "3.12"
uses: actions/setup-python@v2
with:
python-version: "3.8"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: "3.12"
- name: Install symd
run: |
sudo apt-get install libgsl-dev cmake
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]


jobs:
docs:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install symd
run: |
sudo apt-get install libgsl-dev cmake
mkdir build && cd build && cmake .. && make && sudo make install
- name: Install dependencies
working-directory: python
run: |
python -m pip install --upgrade pip
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Install
working-directory: python
run: |
pip install . && pip install -r docs/requirements.txt
- name: Run tests
working-directory: python
run: |
pytest

0 comments on commit 00258d6

Please sign in to comment.