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

ci: Fix failing CI #1452

Merged
merged 1 commit into from
Nov 3, 2024
Merged

ci: Fix failing CI #1452

merged 1 commit into from
Nov 3, 2024

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Oct 31, 2024

@@ -150,7 +150,7 @@ jobs:
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
defaults:
run:
shell: bash -l {0}
shell: bash -e {0}
Copy link
Member Author

Choose a reason for hiding this comment

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

There is no need to load the settings file (-l), like .bashrc which could pollute the PATH.

Though it is important to exit if one command fails (-e).

run: pip install -v --prefer-binary -e '.[tests, examples-tests, geo, hvdev, hvdev-geo, dev-extras]'
- name: pip list
run: pip list
run: python -m pip install -v --prefer-binary -e '.[tests, examples-tests, geo, hvdev, hvdev-geo, dev-extras]'
Copy link
Member Author

Choose a reason for hiding this comment

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

Good practice to call python -m pip, see https://pip.pypa.io/en/stable/cli/pip_install/.

run: python -m pip install -v --prefer-binary -e '.[tests, examples-tests, geo, hvdev, hvdev-geo, dev-extras]'
- name: python version and pip list
run: |
python --version --version
Copy link
Member Author

Choose a reason for hiding this comment

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

Just nice to know 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

Though, it is available with setup-python.

You can revert it if you want to.

@hoxbro hoxbro marked this pull request as ready for review October 31, 2024 08:34
@hoxbro hoxbro requested a review from maximlt October 31, 2024 08:35
@hoxbro hoxbro changed the title ci: Try to fix failing CI ci: Fix failing CI Oct 31, 2024
@maximlt maximlt merged commit f8ae35e into main Nov 3, 2024
9 checks passed
@maximlt maximlt deleted the ci_fix branch November 3, 2024 16:37
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