Skip to content

Commit

Permalink
fix(ci): fix many tests by setting a default version
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Mar 26, 2024
1 parent a96e815 commit d6a4510
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6a4510

Please sign in to comment.