Skip to content

Merge pull request #100 from petermcd/update-cicd #13

Merge pull request #100 from petermcd/update-cicd

Merge pull request #100 from petermcd/update-cicd #13

Workflow file for this run

name: UV
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
uv:
name: python
runs-on: ubuntu-latest
permissions: read-all
strategy:
matrix:
python-version:
- "3.11"
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python
run: uv python install
- name: pyTest
run: uv run pytest tests
- name: Ruff (check)
run: uv run ruff check
- name: Ruff (format)
run: uv run ruff format --diff --check
- name: Ty
run: uv run ty check
#- name: Troml
# run: uv run troml check
- name: Run SonarQube
uses: sonarsource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}