Skip to content

Let's not forget the makefile rule #49

Let's not forget the makefile rule

Let's not forget the makefile rule #49

Workflow file for this run

name: Validation
on:
pull_request:
types: [opened, synchronize, reopened, edited]
push:
branches:
- develop
tags:
- "*"
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
uses: yezz123/setup-uv@v4
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: make sync
- name: Run Pytest
run: make test
- name: Build package
run: poetry build
- name: Upload dist
uses: actions/upload-artifact@v3
with:
name: bernard
path: dist/
if-no-files-found: error
- name: Configure Pypi publication
if: github.ref_type == 'tag'
run: poetry config pypi-token.pypi $PYPI_TOKEN
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Publish package
if: github.ref_type == 'tag'
run: poetry publish