From 92e62bb0cbcc348289631d9ce3154893256a6c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Lapr=C3=A9?= Date: Fri, 21 Jun 2024 11:13:36 +0200 Subject: [PATCH] chore: restructure CI steps --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ebcd374..fe489656 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ on: - cron: "27 19 * * 3" jobs: - build: + run_tests: runs-on: windows-latest strategy: fail-fast: false @@ -41,15 +41,11 @@ jobs: python -m pip install --exists-action=w --no-cache-dir -r requirements_dev.txt python -m pip install . - - name: Lint with ruff - run: | - ruff check . - - name: Test with pytest run: | pytest - check_format: + lint_and_check_format: runs-on: windows-latest steps: @@ -65,6 +61,10 @@ jobs: python -m pip install --upgrade pip python -m pip install ruff + - name: Lint with ruff + run: | + ruff check . + - name: Check formatting with ruff run: | ruff format --check