diff --git a/.github/workflows/run-tests-comment.yml b/.github/workflows/run-tests-comment.yml index 2351203dc9..ccae9db0ee 100644 --- a/.github/workflows/run-tests-comment.yml +++ b/.github/workflows/run-tests-comment.yml @@ -4,12 +4,17 @@ on: types: - created +# Required shell entrypoint to have properly configured bash shell +defaults: + run: + shell: bash -l {0} + jobs: linux: runs-on: "ubuntu-latest" strategy: matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] fail-fast: false name: Linux Python ${{ matrix.python-version }} if: ${{ github.event.issue.pull_request && github.event.comment.body == '@runGAtests' }} @@ -25,18 +30,12 @@ jobs: miniforge-version: "latest" miniforge-variant: Mambaforge use-mamba: true - - shell: bash -l {0} - run: mkdir -p test_linux_artifacts_python_${{ matrix.python-version }} - - shell: bash -l {0} - run: conda --version 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/conda_version.txt - - shell: bash -l {0} - run: python -V 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/python_version.txt - - shell: bash -l {0} - run: pip install -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt - - shell: bash -l {0} - run: flake8 - - shell: bash -l {0} - run: pytest -n 2 -m "not installation" 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/test_report.txt + - run: mkdir -p test_linux_artifacts_python_${{ matrix.python-version }} + - run: conda --version 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/conda_version.txt + - run: python -V 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/python_version.txt + - run: pip install -e .[develop] 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/install.txt + - run: flake8 + - run: pytest -n 2 -m "not installation" 2>&1 | tee test_linux_artifacts_python_${{ matrix.python-version }}/test_report.txt - name: Upload artifacts if: ${{ always() }} # upload artifacts even if fail uses: actions/upload-artifact@v2 @@ -48,7 +47,7 @@ jobs: runs-on: "macos-latest" strategy: matrix: - python-version: ["3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] fail-fast: false name: OSX Python ${{ matrix.python-version }} if: ${{ github.event.issue.pull_request && github.event.comment.body == '@runGAtests' }} @@ -64,18 +63,12 @@ jobs: miniforge-version: "latest" miniforge-variant: Mambaforge use-mamba: true - - shell: bash -l {0} - run: mkdir -p test_osx_artifacts_python_${{ matrix.python-version }} - - shell: bash -l {0} - run: conda --version 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/conda_version.txt - - shell: bash -l {0} - run: python -V 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/python_version.txt - - shell: bash -l {0} - run: pip install -e .[develop] 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/install.txt - - shell: bash -l {0} - run: flake8 - - shell: bash -l {0} - run: pytest -n 2 -m "not installation" 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/test_report.txt + - run: mkdir -p test_osx_artifacts_python_${{ matrix.python-version }} + - run: conda --version 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/conda_version.txt + - run: python -V 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/python_version.txt + - run: pip install -e .[develop] 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/install.txt + - run: flake8 + - run: pytest -n 2 -m "not installation" 2>&1 | tee test_osx_artifacts_python_${{ matrix.python-version }}/test_report.txt - name: Upload artifacts if: ${{ always() }} # upload artifacts even if fail uses: actions/upload-artifact@v2