Skip to content

Commit

Permalink
build-test GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinsonBeaucour authored and RobinsonBeaucour committed Jun 12, 2024
1 parent 2f477e8 commit 38b5dee
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-test

on: [push, pull_request, workflow_dispatch]

jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: pip install poetry
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Lock dependencies
run: poetry lock
- name: Build package
run: poetry build
- name: Install dependencies
run: poetry install --with dev
- name: Run tests
run: poetry run pytest

0 comments on commit 38b5dee

Please sign in to comment.