Skip to content

Commit

Permalink
Add CI workflow for Python project using Poetry and GitHub Actions
Browse files Browse the repository at this point in the history
Sanjaypranav committed Dec 18, 2024
1 parent c8d4927 commit 67796fd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python Poetry Workflow

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Poetry
run: |
pip install poetry
- name: Install dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
poetry install
- name: Run tests
run: |
poetry run pytest

0 comments on commit 67796fd

Please sign in to comment.