-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Upgrade Poetry installation #1252
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 |
---|---|---|
|
@@ -20,21 +20,25 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1.1.1 | ||
uses: snok/install-poetry@v1.1.6 | ||
with: | ||
version: 1.1.4 | ||
virtualenvs-create: false | ||
version: 1.1.6 | ||
virtualenvs-in-project: true | ||
- name: Install dependencies | ||
run: poetry install | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
- name: Format check with black | ||
run: make format-check | ||
run: | | ||
source $VENV | ||
make format-check | ||
Comment on lines
+26
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ran into some problems with the old setup, so switched from installing dependencies directly inside the runner environment, to installing dependencies to a venv and activating the venv in consequent steps. Just for context, instead of The |
||
- name: Typecheck with mypy | ||
run: make typecheck | ||
run: | | ||
source $VENV | ||
make typecheck | ||
- name: Test with pytest | ||
run: | | ||
pip install . | ||
python -m pytest tests -v --cov=./rich --cov-report=xml:./coverage.xml --cov-report term-missing | ||
source $VENV | ||
pytest tests -v --cov=./rich --cov-report=xml:./coverage.xml --cov-report term-missing | ||
- name: Upload code coverage | ||
uses: codecov/codecov-action@v1.0.10 | ||
with: | ||
|
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 is unintentionally possibly a little confusing. Just to clarify - the
version
parameter here specifies the Poetry version, while the@1.1.6
specifies the action version. They just happen to be the same.