Skip to content

feat(api): Add a check when posting a new task if the url is reachabl… #211

feat(api): Add a check when posting a new task if the url is reachabl…

feat(api): Add a check when posting a new task if the url is reachabl… #211

Workflow file for this run

name: Validate project quality
on:
pull_request:
types: [opened, edited, synchronize, reopened]
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
project-quality:
name: Validate project quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install poetry and plugins
run: |
curl -sSL https://install.python-poetry.org | python -
poetry config virtualenvs.create true
poetry self add poetry-multiproject-plugin
poetry self add poetry-polylith-plugin
- name: Install dependencies
run: |
poetry install
- name: Validate polylith project
run: |
task project-check
- name: Validate code quality
run: |
task quality
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./coverage.xml
title: Branch coverage
badge-title: Coverage PR ${{ github.event.pull_request.number }}
report-only-changed-files: true