statisticsnorway / ssb-pypitemplate

Template for PyPI-packages in Statistics Norway, based on hyper modern python.
https://statisticsnorway.github.io/ssb-pypitemplate/
MIT License
9 stars 1 forks source link

Use absolute paths when referencing files in GHA #63

Closed mallport closed 6 months ago

mallport commented 7 months ago

All GHA workflows using this template have started randomly failing yesterday, with the error: ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.github/workflows/constraints.txt'

No idea why this happens, but changing the paths to absolute instead of relative fixes the issue.

Examples of repos where this has been happening: https://github.com/statisticsnorway/dapla-toolbelt-pseudo/actions/runs/8535556405/job/23382201774 https://github.com/statisticsnorway/datadoc/actions/runs/8551480041/job/23430574692 https://github.com/statisticsnorway/ssb-klass-python/actions/runs/8537434661/job/23388004250