From 11719997291c1b542f96eff51049dbe43c5fb43b Mon Sep 17 00:00:00 2001 From: Hans-Martin von Gaudecker Date: Fri, 11 Oct 2024 08:40:34 +0200 Subject: [PATCH 1/2] Update GHA workflows. --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59169535..db684168 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,18 +35,18 @@ jobs: create-args: python=${{ matrix.python-version }} cache-environment: true micromamba-version: 1.5.6-0 - - name: Run full test suite on MacOS and Linux + - name: Run test suite with coverage on Linux & Python 3.12 shell: bash -l {0} run: | micromamba activate template_project pytest -v --cov=./ --cov-report=xml - if: runner.os != 'Windows' - - name: Run test suite except for pytask build on Windows - shell: bash -l {0} - run: | - micromamba activate template_project - pytest -v -k "not pytask" - if: runner.os == 'Windows' + if: runner.os == 'Linux' && matrix.python-version == '3.12' - name: Upload coverage reports if: runner.os == 'Linux' && matrix.python-version == '3.12' uses: codecov/codecov-action@v3 + - name: Run test suite + shell: bash -l {0} + run: | + micromamba activate template_project + pytest -v + if: runner.os != 'Linux' || matrix.python-version != '3.12' From 1ddefaf4052acbfc93002f15280b87abea4d20a8 Mon Sep 17 00:00:00 2001 From: Hans-Martin von Gaudecker Date: Fri, 11 Oct 2024 14:49:21 +0200 Subject: [PATCH 2/2] Get some more output. --- tests/test_template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_template.py b/tests/test_template.py index 85f4cee7..ce1d5a18 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -12,5 +12,6 @@ def test_pytask_build(monkeypatch, tmp_path): session = pytask.build( config=ROOT / "pyproject.toml", force=True, + s=True, ) assert session.exit_code == ExitCode.OK