From f6eac93bfe317f64975ef4b2b3d36b556e66405e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Thu, 25 Jun 2026 09:14:57 +0200 Subject: [PATCH] chore: better CI --- .github/workflows/checks.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/pr.yml | 18 ++++++++++++++++++ .github/workflows/prchecks.yml | 30 ------------------------------ 3 files changed, 50 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/checks.yml create mode 100644 .github/workflows/pr.yml delete mode 100644 .github/workflows/prchecks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..d27a2f0 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,32 @@ +name: Checks +on: + push: + branches: [main, features] + pull_request: + branches: [main, features] + +jobs: + lint: + name: Code Style + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: 3.x + - uses: psf/black@stable + + poetry-check: + runs-on: ubuntu-latest + + name: Poetry + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-python@v6 + with: + python-version: '3.x' + - run: | + pip install -U pip poetry + poetry install + - run: poetry check --strict diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..5d69422 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,18 @@ +name: Pull Request + +on: + pull_request: + types: + - opened + - edited + - synchronize + +jobs: + semantic-pr: + name: Validate PR title + runs-on: ubuntu-latest + + steps: + - uses: amannn/action-semantic-pull-request@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/prchecks.yml b/.github/workflows/prchecks.yml deleted file mode 100644 index 51a0a08..0000000 --- a/.github/workflows/prchecks.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Pull Request Checks - -on: - pull_request: - branches: [main, features] - -jobs: - semantic-pr: - name: Semantic Pull Request - runs-on: ubuntu-latest - strategy: - fail-fast: false - - steps: - - uses: amannn/action-semantic-pull-request@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - lint: - name: Code Style - runs-on: ubuntu-latest - strategy: - fail-fast: false - - steps: - - uses: actions/checkout@v5 - - uses: actions/setup-python@v6 - with: - python-version: 3.x - - uses: psf/black@stable