diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7407ba..3209426 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 + fetch-tags: true - uses: actions/setup-python@v3 with: python-version: 3.12 @@ -45,6 +47,8 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 + fetch-tags: true - uses: actions/setup-python@v3 with: @@ -64,6 +68,8 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 + fetch-tags: true - name: Set up Conda uses: conda-incubator/setup-miniconda@v3 diff --git a/tests/test_binding.py b/tests/test_binding.py index 0198010..aec265e 100644 --- a/tests/test_binding.py +++ b/tests/test_binding.py @@ -91,9 +91,6 @@ def test_cmake_static_compilation(csetstr: str): testprog = os.path.join(tmpdir, "test.cc") # SKBUILD_PROJECT_VERSION only includes major.minor.patch versionstr = ".".join(correctionlib.__version__.split(".")[:3]) - if versionstr.startswith("0.1.dev1+"): - # band-aid for https://github.com/actions/checkout/issues/249 in CI - versionstr = "0.1" with open(testprog, "w") as f: f.write(TESTPROG_SRC % (versionstr, csetstr)) flags = (