diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-23 06:09:21 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-23 06:09:21 +0200 |
| commit | fda876a5290ee7a8ede4c19eb1fa2181b3c1d97c (patch) | |
| tree | 80813955cf11afdb837c6783ac9b812637cd6415 /.github/workflows | |
| parent | reformat files in accordance with Black (diff) | |
| download | linux-status-fda876a5290ee7a8ede4c19eb1fa2181b3c1d97c.tar.gz linux-status-fda876a5290ee7a8ede4c19eb1fa2181b3c1d97c.zip | |
workflows/ci: lint in a separate job
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 23 |
1 files 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 |
