-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Python Poetry | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
poetry-deps: | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
platform: ["ubuntu-22.04"] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Poetry needs to be installed outside of the 'venv' | ||
# There are various ways to do this, this is one of the easier ways. | ||
- name: Install poetry | ||
run: | | ||
pipx install poetry | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'poetry' | ||
|
||
# Install dependencies, but do not 'python' install this repository itself | ||
- name: Install dependencies | ||
run: | | ||
poetry install --no-root | ||
- name: Display Python version | ||
run: python3 --version | ||
|
||
- name: Display installed packages | ||
run: poetry run pip list | ||
|