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: refine job matrix and enable cache for poetry #1381
Changes from 9 commits
ec0711e
8d391f6
42c34ae
2eac801
36648a3
b7e61ad
c0c6e2f
8cd6995
ea8b19f
361803c
d1ebf68
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 |
---|---|---|
|
@@ -11,22 +11,30 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install poetry via pipx | ||
run: pipx install poetry | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'poetry' | ||
|
||
- name: Install Python dependencies using Poetry | ||
run: poetry install | ||
|
||
- name: Install & Start Docker | ||
run: | | ||
brew install colima docker | ||
colima start | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: latest | ||
|
||
- name: Build Environment | ||
run: make build | ||
|
||
- name: Run Tests | ||
run: poetry run pytest ./tests/unit | ||
|
||
on-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -35,13 +43,21 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
|
||
- name: Install poetry via pipx | ||
run: pipx install poetry | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry | ||
run: curl -sSL https://install.python-poetry.org | python3 - | ||
cache: 'poetry' | ||
|
||
- name: Install Python dependencies using Poetry | ||
run: poetry install --without evaluation | ||
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. this is part of 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. I know which have been removed in previous commit. I think add 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. Logically it wouldn't make sense to speed up... but it wouldn't harm either. |
||
|
||
- name: Build Environment | ||
run: make build | ||
|
||
- name: Run Tests | ||
run: poetry run pytest ./tests/unit |
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.
Shouldn't we remove this line (and L17, L19, L21)?
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 don't quite follow.
Current combinations are as follows
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.
sorry, my bad; this looks good