From 1b6d8c5679b8403a31470c446e8fcf57e186b55f Mon Sep 17 00:00:00 2001 From: Sathvik Bhagavan <35105271+sathvikbhagavan@users.noreply.github.com> Date: Sun, 17 Dec 2023 20:29:06 +0530 Subject: [PATCH] ci: setup GHA workflow (#210) * ci: setup GHA workflow * ci: delete travis workflow * build: pin matplotlib version to 3.7 --- .github/workflows/CI.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 12 ------------ 2 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/CI.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..dcdce97 --- /dev/null +++ b/.github/workflows/CI.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fa2fac2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -python: - - "3.6" -install: - - pip install -r requirements.txt > /dev/null 2> /dev/null # discard installation output - - pip install . - - pip install --upgrade pytest-cov pytest - - pip install codecov -script: - - pytest --cov-report term --cov=neurodiffeq/ -after_success: - - codecov