Skip to content

Commit

Permalink
ci: setup GHA workflow (#210)
Browse files Browse the repository at this point in the history
* ci: setup GHA workflow

* ci: delete travis workflow

* build: pin matplotlib version to 3.7
  • Loading branch information
sathvikbhagavan authored Dec 17, 2023
1 parent 0e93209 commit 1b6d8c5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: NeurodiffEq

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install matplotlib==3.7
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest --cov-report term --cov=neurodiffeq/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit 1b6d8c5

Please sign in to comment.