From d6a4510510a6538ed3be539e5bcceb4a76788711 Mon Sep 17 00:00:00 2001 From: David Huggins-Daines Date: Fri, 22 Mar 2024 17:03:09 -0400 Subject: [PATCH] fix(ci): fix many tests by setting a default version --- .github/workflows/tests.yml | 7 +++++++ pyproject.toml | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9281bee6..17296c80 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,6 +4,13 @@ on: - push - workflow_call +# Since we don't checkout the full history, set a default version so +# certain tests (pep440, update_schema) will still function. NOTE: +# This **must** match the version of the JSON schema file in +# g2p/mappings/.schema!!! +env: + SETUPTOOLS_SCM_PRETEND_VERSION: 2.0 + jobs: test-all-on-linux: # This is our main test job, exercising everything and uploading to coverage diff --git a/pyproject.toml b/pyproject.toml index 0ac21f79..1192b754 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,9 +86,6 @@ source = "vcs" [tool.hatch.build.hooks.vcs] version-file = "g2p/_version.py" -# NOTE: This *must* match the version of the JSON schema in -# g2p/mappings/.schema for test_cli.py to succeed. -raw_options = { fallback_version = "2.0" } template = """ # file generated by setuptools_scm # don't change, don't track in version control