From 56540c95730c3f848a247a357e31fdc38773cad0 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Tue, 12 Nov 2024 19:06:04 +0100 Subject: [PATCH] chore(ci): cleanup workflows and add windows and macos --- .github/workflows/code-quality.yml | 17 ----------------- .github/workflows/main.yml | 13 +++++++++++-- 2 files changed, 11 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/code-quality.yml diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml deleted file mode 100644 index d9ca134..0000000 --- a/.github/workflows/code-quality.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Code Quality - -on: - push: - branches: - - main - pull_request: - branches: - - '**' - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - - uses: pre-commit/action@v2.0.0 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7cf66fe..b17f13c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,13 +9,22 @@ on: - '**' jobs: + pre-commit: + name: Code Quality + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v2.0.0 + tests: - name: ${{ matrix.os }} / ${{ matrix.python-version }} + name: Test / ${{ matrix.python-version }} / ${{ matrix.os }} runs-on: ${{ matrix.os }}-latest continue-on-error: ${{ matrix.experimental }} + needs: [pre-commit] strategy: matrix: - os: [Ubuntu] + os: [ubuntu, windows, macos] python-version: ["3.10", "3.11", "3.12", "3.13"] experimental: [false] fail-fast: false