diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9c48fa0d..f0868393 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,13 +15,17 @@ concurrency: env: FORCE_COLOR: 2 +defaults: + run: + shell: bash -elo pipefail {0} + jobs: test: runs-on: ubuntu-latest timeout-minutes: 5 strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3'] fail-fast: false env: PYTEST_ADDOPTS: --cov --cov-append --color=yes @@ -30,9 +34,13 @@ jobs: uses: actions/checkout@v4 - name: Configure Python - uses: actions/setup-python@v5 + uses: mamba-org/setup-micromamba@v2 with: - python-version: ${{ matrix.python-version }} + cache-environment: true + post-cleanup: 'all' + environment-name: cylc + create-args: >- + python=${{ matrix.python-version }} - name: install libs uses: cylc/release-actions/install-cylc-components@v1 @@ -111,9 +119,13 @@ jobs: uses: actions/checkout@v4 - name: Configure Python - uses: actions/setup-python@v5 + uses: mamba-org/setup-micromamba@v2 with: - python-version: '3.9' + cache-environment: true + post-cleanup: 'all' + environment-name: cylc + create-args: >- + python=${{ matrix.python-version }} - name: install libs uses: cylc/release-actions/install-cylc-components@v1