From fab800d7ad4fb8aa6c85463e4d1a469faf8b553b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20K=C3=B6ster?= Date: Tue, 10 Aug 2021 15:23:24 +0200 Subject: [PATCH] chore: use checkout v2 (#1125) * use checkout v2 * use stable version of setup-gcloud. * more detailed error message if min_version fails * fetch history * also fetch all tags on windows --- .github/workflows/main.yml | 10 +++++++--- snakemake/utils.py | 6 +++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index efd18419e..030d76a1b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,9 @@ jobs: AWS_AVAILABLE: ${{ secrets.AWS_ACCESS_KEY_ID }} GCP_AVAILABLE: ${{ secrets.GCP_SA_KEY }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # we need tags for versioneer to work - name: Setup Snakemake environment run: | @@ -70,7 +72,7 @@ jobs: cp -r tests/test_remote_irods/setup-data ~/.irods - name: Setup Gcloud - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + uses: GoogleCloudPlatform/github-actions/setup-gcloud@v0.2.1 if: env.GCP_AVAILABLE with: project_id: ${{ secrets.GCP_PROJECT_ID }} @@ -165,7 +167,9 @@ jobs: needs: formatting steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Remove unix-only dependencies shell: python diff --git a/snakemake/utils.py b/snakemake/utils.py index 653a87a18..d2e3ed381 100644 --- a/snakemake/utils.py +++ b/snakemake/utils.py @@ -470,7 +470,11 @@ def min_version(version): if pkg_resources.parse_version(snakemake.__version__) < pkg_resources.parse_version( version ): - raise WorkflowError("Expecting Snakemake version {} or higher.".format(version)) + raise WorkflowError( + "Expecting Snakemake version {} or higher (you are currently using {}).".format( + version, snakemake.__version__ + ) + ) def update_config(config, overwrite_config):