Skip to content

Commit

Permalink
Added new CI tests (#28)
Browse files Browse the repository at this point in the history
* Added new CI tests

* Updating installs for python 3.12

* Removing docs from PRs
  • Loading branch information
whitead authored Jul 24, 2024
1 parent a1d4988 commit debc7e1
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 255 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
8 changes: 3 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ name: docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]


jobs:
Expand All @@ -15,13 +13,13 @@ 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
sudo apt-get install libgsl-dev cmake libxml2-dev libxslt1-dev
mkdir build && cd build && cmake .. && make && sudo make install
- name: Install dependencies
working-directory: python
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

name: test

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


jobs:
tests:

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 libxml2-dev libxslt1-dev
mkdir build && cd build && cmake .. && make && sudo make install
- name: Install dependencies
working-directory: python
run: |
python -m pip install --upgrade pip
pip install -r ../dev-requirements.txt
- name: Install
working-directory: python
run: |
pip install . && pip install -r docs/requirements.txt
- name: Run tests
run: |
pytest tests/
4 changes: 4 additions & 0 deletions python/docs/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ pandas
matplotlib
skunk
svglib
#lxml>=5 # no wheels for python 3.12 on <5
#pyzmq>=26.0.0 # no wheels for python 3.12 on <26
#numpy==1.26.4 # some shit about setuptool (https://github.com/numpy/numpy/issues/23808)
#pyyaml==6.0.2rc1 # needed for cython 3 release (which is dependency somwehere)
Loading

0 comments on commit debc7e1

Please sign in to comment.