-
Notifications
You must be signed in to change notification settings - Fork 10
Requirements not found error + fix for error in black #6
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
base: master
Are you sure you want to change the base?
Requirements not found error + fix for error in black #6
Conversation
Now that I am looking at this, I see a bigger problem. Is see few options here:
I am quite short on time and will look into it later, but you could take a shot at this @nmenardg-keeper if you would like :) |
@@ -1,4 +1,4 @@ | |||
black==21.11b1 |
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.
We also need to update README file
You're making good points here. Thinking about it, here are the options I see:
I'd go with option 3 |
run: pip install -r ${{ github.action_path }}/requirements.txt | ||
run: | | ||
pip install -r requirements.txt # project's dependencies | ||
pip install -r ${{ github.action_path }}/requirements.txt # linters |
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.
setup-python
's cache
argument was expecting a requirements.txt but is not doing the install
See the example in their readme file:
https://github.com/actions/setup-python#caching-packages-dependencies
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.
yeah, i have noticed this as well. Thanks for the fix
Closed by mistake |
with: | ||
python-version: "3.8" | ||
- name: Generate requirements.txt file | ||
run: | |
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.
I'm thinking if shouldn't just do this automatically? Check if the requirements file exists (provided by user). If not, install pipenv and generate dependencies.
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.
If you have time to do that then go ahead, but I don't
setup-python action was searching for the requirements.txt file of the linted python project, which in pipenv projects broke the action
and
updated black to get this fix: psf/black#2966