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