Skip to content

Commit

Permalink
Python Poetry and GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Jun 3, 2024
1 parent 93d3651 commit f9a0e37
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/poetry-install-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Python Poetry
on:
- push
jobs:
poetry-deps:

strategy:
matrix:
python-version: ["3.12"]
platform: ["ubuntu-22.04"]
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# platform: ["windows-2022", "macos-13", "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

0 comments on commit f9a0e37

Please sign in to comment.