Skip to content

Commit

Permalink
chore: use checkout v2 (#1125)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
johanneskoester committed Aug 10, 2021
1 parent 1fee8c0 commit fab800d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -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: |
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion snakemake/utils.py
Expand Up @@ -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):
Expand Down

0 comments on commit fab800d

Please sign in to comment.