-
Notifications
You must be signed in to change notification settings - Fork 57.5k
Create python-package-conda.yml #1080
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||||||
| name: Python Package using Conda | ||||||||||
|
|
||||||||||
| on: [push] | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| build-linux: | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
| strategy: | ||||||||||
| max-parallel: 5 | ||||||||||
|
|
||||||||||
| steps: | ||||||||||
| - uses: actions/checkout@v4 | ||||||||||
| - name: Set up Python 3.10 | ||||||||||
| uses: actions/setup-python@v3 | ||||||||||
|
||||||||||
| uses: actions/setup-python@v3 | |
| uses: actions/setup-python@v5 |
Copilot
AI
Jan 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow references environment.yml but this file doesn't exist in the repository. The workflow will fail when it attempts to execute this command. Either create an environment.yml file or update this step to use the existing requirements.txt file instead.
| conda env update --file environment.yml --name base | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt |
Copilot
AI
Jan 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow runs pytest but there are no test files in the repository. The pytest command will fail or pass without testing anything. Either add test files or remove this step from the workflow.
| - name: Test with pytest | |
| run: | | |
| conda install pytest | |
| pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actions/checkout action is using v4 while other workflows in this repository use v5. For consistency and to ensure the latest features and security updates, this should be updated to v5.