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