From fda876a5290ee7a8ede4c19eb1fa2181b3c1d97c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 23 May 2026 06:09:21 +0200 Subject: workflows/ci: lint in a separate job --- .github/workflows/ci.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccf383f..6d63e24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,25 +5,36 @@ on: workflow_dispatch: jobs: - test: - strategy: - matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.x'] + lint: runs-on: ubuntu-latest - name: 'Python ${{ matrix.python-version }}' + name: Linting steps: - name: Checkout uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '${{ matrix.python-version }}' + python-version: '3.x' - name: Run black uses: psf/black@stable with: # > Please note that the --check flag is required so that the # > workflow fails if Black finds files that need to be formatted. options: --check --verbose --skip-string-normalization + + test: + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.x'] + runs-on: ubuntu-latest + name: 'Python ${{ matrix.python-version }}' + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '${{ matrix.python-version }}' - name: Run tests as root run: sudo ./test/test.sh - name: Run tests -- cgit v1.3