diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2f53732..d31a0200 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,9 @@ name: Integration Tests on: [push, pull_request] +env: + PYTHON_LATEST: '3.9' + jobs: test: strategy: @@ -33,19 +36,19 @@ jobs: pip install -Ur requirements.txt python setup.py develop - name: Lint - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == $PYTHON_LATEST }} run: | flake8 - name: Run tests - if: ${{ matrix.os != 'ubuntu-latest' || matrix.python-version != '3.8' }} + if: ${{ matrix.os != 'ubuntu-latest' || matrix.python-version != $PYTHON_LATEST }} run: | coverage run --source=thefuck,tests -m py.test -v --capture=sys tests - name: Run tests (including functional) - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == $PYTHON_LATEST }} run: | coverage run --source=thefuck,tests -m py.test -v --capture=sys tests --enable-functional - name: Post coverage results - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == $PYTHON_LATEST }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |