From 8940aac0af1d467176e506c5beb508c455f80b62 Mon Sep 17 00:00:00 2001 From: Alon Grinberg Dana Date: Thu, 6 May 2021 10:53:38 +0300 Subject: [PATCH] Modified cont_int.yml Only run on Py3.7 --- .github/workflows/cont_int.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cont_int.yml b/.github/workflows/cont_int.yml index 383c6386..998a3140 100644 --- a/.github/workflows/cont_int.yml +++ b/.github/workflows/cont_int.yml @@ -1,25 +1,30 @@ name: continuous integration -on: [push] +on: + push: + pull_request: + branches: + - master + types: [opened, synchronize, reopened, ready_for_review, review_requested] jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.7, 3.8] steps: - uses: actions/checkout@v2 - - name: Set up miniconda Python ${{ matrix.python-version }} + - name: Set up miniconda Python 3.7 uses: conda-incubator/setup-miniconda@v2 with: activate-environment: t3_env environment-file: environment.yml - python-version: ${{ matrix.python-version }} + python-version: 3.7 auto-activate-base: false + - name: Install codecov + run: conda install -y -c conda-forge codecov + - name: Install dependencies shell: bash -l {0} run: | @@ -29,7 +34,7 @@ jobs: echo $(pwd) conda list - - name: Test with nosetests + - name: Test with PyTest shell: bash -l {0} run: | cd ..