From 6a9d2ed5b0631dd94bdaaaf98caca5ab55a31e61 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 24 Sep 2024 10:41:51 +0100 Subject: [PATCH] Attempt building and linting in a single task for Cirrus CI (#205) --- .cirrus.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 66e4f8c..9f0c438 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -80,21 +80,11 @@ build_task: <<: *task-template install_script: pip install tox build_script: - - tox -e clean,build + - tox -e clean,lint,typecheck,build - tar czf dist.tar.gz dist upload_artifacts: path: dist.tar.gz -check_task: - name: check (Linux - 3.10) - alias: check - depends_on: [build] - container: {image: "python:3.10-bookworm"} # 3.11+ don't understand some code paths - dist_cache: {folder: dist, fingerprint_script: echo $CIRRUS_BUILD_ID} # download - <<: *task-template - install_script: pip install tox - download_artifact_script: *download-artifact - check_script: tox --installpkg dist/*.whl -e lint,typecheck linux_task: matrix: @@ -187,7 +177,7 @@ linkcheck_task: # publish_task: # name: publish (Linux - 3.10) # container: {image: "python:3.10-bullseye"} -# depends_on: [check, build, base-test, test] +# depends_on: [build, base-test, test] # only_if: $CIRRUS_TAG =~ 'v\d.*' && $CIRRUS_USER_PERMISSION == "admin" # <<: *task-template # env: