Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA: Fix test-install workflow #6409

Merged
merged 3 commits into from
May 22, 2024
Merged

Conversation

danielhollas
Copy link
Collaborator

If a workflow file is faulty, GitHub UI doesn't even bother showing the workflow at all on PR page. Thanks, I hate it.

https://github.com/aiidateam/aiida-core/actions/runs/9182083348

@@ -239,7 +239,7 @@ jobs:
# updating the requirements (in case they are inconsistent with the pyproject.toml file).
- uses: actions/upload-artifact@v4
with:
name: requirements.txt
name: requirements-py-${{ matrix.python-version }}.txt
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upload-artifact@v4 no longer allows uploading multiple artifacts under the same name.

@danielhollas danielhollas requested a review from sphuber May 22, 2024 06:49
@sphuber
Copy link
Contributor

sphuber commented May 22, 2024

Thanks @danielhollas . What was the actual main failure here? Was it the unsupported use of upload-artifact? Or was it the path of the uses: ./.github/actions/install-aiida-core?

@danielhollas
Copy link
Collaborator Author

Well, there were three fatal failures, but the one that ruled them all was the uses line, which made the whole workflow invalid which hid the other issues.

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @danielhollas

@sphuber sphuber merged commit 22ea063 into aiidateam:main May 22, 2024
37 checks passed
@danielhollas danielhollas deleted the fix-test-install branch May 22, 2024 10:43
mikibonacci pushed a commit to mikibonacci/aiida-core that referenced this pull request Sep 3, 2024
* The `uses` key requires full relative path when using a local path
  to include, i.e., the leading `./` is required in the following:
   
      used: `./.github/actions/install-aiida-core

* The action `upload-artifact@v4` no longer supports uploading multiple
  files with the same name, so they now include the Python version.

* The Sphinx extension test is made more robust by making it insensitive
  to the version of docutils used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants