Skip to content

Commit

Permalink
Simpler GH actions Poetry workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Feb 1, 2024
1 parent 5a76005 commit 797fdfc
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/poetry-install-deps2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Testing GH Actions
on:
- push
jobs:
poetry-deps:

strategy:
matrix:
python-version: ["3.12"]
platform: ["ubuntu-22.04"]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4

- 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'

- name: Install dependencies
run: |
poetry install --no-root
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Display installed packages
run: poetry run pip list

- name: Display installed packages (straight pip)
run: pip list

0 comments on commit 797fdfc

Please sign in to comment.