From 491c59a20bdfd03a29982c779b0e0500a3ebec73 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Wed, 8 May 2024 17:29:57 +0100 Subject: [PATCH] Update release workflow --- .github/workflows/prerelease.yml | 1 + .github/workflows/publish.yml | 5 +++-- .github/workflows/tests_tox.yml | 1 + tox.ini | 6 +++--- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 9a92828a2..e7cfd9d50 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -35,6 +35,7 @@ jobs: python -Im tox run -e docs-py$(echo ${{ matrix.python-version }} | tr -d .)-docs -- --keep-going - name: "Run tests ✅ (no coverage)" run: | + # this will compile the assets then run the tests python -Im tox run -e compile,py$(echo ${{ matrix.python-version }} | tr -d .)-tests-no-cov echo "PYTEST_ERRORS=$?" >> $GITHUB_ENV diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ff973840e..93a2a7c33 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,10 +27,11 @@ jobs: - name: "Checkout repository 🛎" uses: actions/checkout@v4 - - name: "Set up Python 3.9" - uses: actions/setup-python@v5 + - name: "Setup CI environment 🛠" + uses: ./.github/actions/set-dev-env with: python-version: "3.9" + pandoc: "False" - name: "Install gettext for translations 🌐" run: | diff --git a/.github/workflows/tests_tox.yml b/.github/workflows/tests_tox.yml index 3a84f4468..91305d1b5 100644 --- a/.github/workflows/tests_tox.yml +++ b/.github/workflows/tests_tox.yml @@ -73,6 +73,7 @@ jobs: - name: "Run tests ✅" shell: bash run: | + # this will compile the assets then run the tests # check if there is a specific Sphinx version to test with # example substitution: tox run -e compile,py39-sphinx61-tests if [ -n "${{matrix.sphinx-version}}" ]; then diff --git a/tox.ini b/tox.ini index fe6a16b22..f7b656692 100644 --- a/tox.ini +++ b/tox.ini @@ -32,10 +32,10 @@ commands = # example tox run -e py39-profile-docs -- -o profile.svg -n 100 profile-docs: python ./tools/profile.py {posargs} -# tests can be ran with or without coverage (see examples below), it is recommended # to run compile before running -# tests (see examples below), if you want to skip the -# assets compilation step you can run the tests without `compile` +# tests can be ran with or without coverage (see examples below), it is recommended to run compile before running tests (see examples below), # tox run -e compile,py39-tests +# if you want to skip the assets compilation step you can run the tests without `compile` +# tox run -e py39-tests # run tests with a specific Sphinx version # tox run -e compile,py39-sphinx61-tests # run tests without coverage