From 475ee5074b2d80ae40884dc1b5e831f87e7dbd49 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Thu, 19 Dec 2024 09:47:51 -0500 Subject: [PATCH] chore(ci): Run tox checks in CI --- .github/workflows/build_test_deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 95cdb726..65ba2f4e 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -150,3 +150,28 @@ jobs: # Remove once OIDC is set up with: password: ${{ secrets.PYPI_API_TOKEN }} + + checks: + runs-on: 'ubuntu-latest' + continue-on-error: true + strategy: + matrix: + check: ['style', 'spellcheck', 'typecheck'] + + steps: + - uses: actions/checkout@v4 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v4 + # Can remove this once there is a traits release that supports 3.13 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: Install tox + run: uv tool install tox --with=tox-uv + - name: Show tox config + run: tox c + - name: Show tox config (this call) + run: tox c -e ${{ matrix.check }} + - name: Run check + run: tox -e ${{ matrix.check }}