Skip to content

Commit 1b6d8c5

Browse files
ci: setup GHA workflow (#210)
* ci: setup GHA workflow * ci: delete travis workflow * build: pin matplotlib version to 3.7
1 parent 0e93209 commit 1b6d8c5

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: NeurodiffEq
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.10", "3.11"]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install -r requirements.txt
21+
pip install matplotlib==3.7
22+
- name: Test with pytest
23+
run: |
24+
pip install pytest pytest-cov
25+
pytest --cov-report term --cov=neurodiffeq/
26+
- name: Upload coverage to Codecov
27+
uses: codecov/codecov-action@v3

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)