Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new CI tests #28

Merged
merged 9 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading