diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2b8ecace2..4a9f7d09a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,6 +17,11 @@ env: permissions: contents: read # This is required for actions/checkout +# ensuring only one instance is running at a given time +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: # Always build & verify package. build-package: @@ -45,7 +50,7 @@ jobs: # Adding a separate upload for publishing - name: "Upload build artefacts ๐Ÿ“ค" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: ${{ matrix.directory }}-package path: | @@ -69,7 +74,7 @@ jobs: steps: - name: "Download build artefacts ๐Ÿ“ฅ" - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: ${{ matrix.directory }}-package path: dist @@ -101,7 +106,7 @@ jobs: steps: - name: "Download build artefacts ๐Ÿ“ฅ" - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: ${{ matrix.directory }}-package path: dist diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fb7ef280c..209836f1c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -2,6 +2,7 @@ name: Tests env: DEFAULT_PYTHON_VERSION: "3.10" + FORCE_COLOR: "1" # Make tools pretty. on: pull_request: @@ -55,11 +56,11 @@ jobs: - name: "Installed built conda-store-server ๐Ÿ“ฆ" run: | - pip install dist/*.whl + python -Im pip install dist/*.whl - name: "Unit tests โœ…" run: | - pytest -m "not extended_prefix and not user_journey" tests + python -Im pytest -m "not extended_prefix and not user_journey" tests # https://github.com/actions/runner-images/issues/1052 - name: "Windows extended prefix unit tests โœ…" @@ -93,7 +94,6 @@ jobs: - name: "Install build dependencies ๐Ÿ“ฆ" run: | - pip install hatch sudo apt install wait-for-it -y - name: "Deploy docker-compose" @@ -108,7 +108,7 @@ jobs: - name: "Run Playwright tests ๐ŸŽญ" run: | playwright install - pytest --video on ../tests/test_playwright.py + python -Im pytest --video on ../tests/test_playwright.py - name: "Upload test results ๐Ÿ“ค" uses: actions/upload-artifact@v4 @@ -120,11 +120,11 @@ jobs: - name: "Run integration tests โœ…" run: | export PYTHONPATH=$PYTHONPATH:$PWD - pytest ../tests/test_api.py ../tests/test_metrics.py + python -Im pytest ../tests/test_api.py ../tests/test_metrics.py - name: "Run user journey tests โœ…" run: | - pytest -m "user_journey" + python -Im pytest -m "user_journey" - name: "Get Docker logs ๐Ÿ”" if: ${{ failure() }} @@ -139,7 +139,7 @@ jobs: working-directory: conda-store strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: "Checkout Repository ๐Ÿ›Ž" uses: actions/checkout@v4 @@ -151,12 +151,11 @@ jobs: - name: "Install Dependencies ๐Ÿ“ฆ" run: | - pip install hatch sudo apt install wait-for-it -y - name: "Linting Checks ๐Ÿงน" run: | - hatch env run -e dev lint + hatch env run -e lint lint - name: "Build package ๐Ÿ“ฆ" run: | @@ -173,7 +172,7 @@ jobs: - name: "Install built conda-store for tests ๐Ÿ“ฆ" run: | - pip install dist/*.whl + python -Im pip install dist/*.whl - name: "Run basic tests - not authenticated" run: | @@ -206,13 +205,13 @@ jobs: - conda-store - conda-store-server steps: - - name: "Checkout Repository" + - name: "Checkout Repository ๐Ÿ›Ž" uses: actions/checkout@v4 - name: "Set up Docker Buildx" uses: docker/setup-buildx-action@v3 - - name: "Lint Dockerfiles" + - name: "Lint Dockerfiles ๐Ÿ”" uses: jbergstroem/hadolint-gh-action@v1 with: dockerfile: ${{ matrix.docker-image }}/Dockerfile