Skip to content

Drop support for python from 3.8 to 3.11; Migrate to uv #104

Drop support for python from 3.8 to 3.11; Migrate to uv

Drop support for python from 3.8 to 3.11; Migrate to uv #104

Workflow file for this run

name: Build interrogatio
on:
push:
branches: '*'
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12', '3.13']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv sync
- name: Linting
run: |
uv run ruff check .
- name: Testing
run: |
uv run pytest
win:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12', '3.13']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv sync
- name: Linting
run: |
uv run ruff check .
- name: Testing
run: |
uv run pytest
quality:
runs-on: ubuntu-latest
needs: [win, linux]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv sync
- name: Linting
run: |
uv run ruff check .
- name: Testing
run: |
uv run pytest
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: SonarQube Quality Gate check
id: sonarqube-quality-gate-check
uses: sonarsource/sonarqube-quality-gate-action@master
with:
pollingTimeoutSec: 600
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}