diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 5be7ff6d..c190fc2d 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -21,29 +21,29 @@ jobs: runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - with: - token: ${{ secrets.INTEGRATIVE_KEY }} - submodules: true - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install package and dependencies - run: | - python -m pip install --upgrade pip - pip install . - pip install -r requirements.txt - - name: Lint with flake8 - run: | - pip install flake8 - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. - flake8 . --count --exit-zero --statistics - - name: Test with pytest and coverage - run: | - pip install pytest coverage - coverage run -m pytest - coverage report + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.INTEGRATIVE_KEY }} + submodules: true + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2.2.2 + with: + python-version: ${{ matrix.python-version }} + - name: Install package and dependencies + run: | + python -m pip install --upgrade pip + pip install . + pip install -r requirements.txt + - name: Lint with flake8 + run: | + pip install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. + flake8 . --count --exit-zero --statistics + - name: Test with pytest and coverage + run: | + pip install pytest coverage + coverage run -m pytest + coverage report