From c04e49b5a3b8bad3e7d7374ca467f782190462b9 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 27 Aug 2023 18:16:41 +0200 Subject: [PATCH] CI: Put default Python version into a variable --- .github/workflows/{test.yml => ci.yaml} | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) rename .github/workflows/{test.yml => ci.yaml} (85%) diff --git a/.github/workflows/test.yml b/.github/workflows/ci.yaml similarity index 85% rename from .github/workflows/test.yml rename to .github/workflows/ci.yaml index bbca5a99b..633829a67 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/ci.yaml @@ -1,11 +1,15 @@ -name: Tests (tox) +--- +name: CI on: - push - pull_request +env: + DEFAULT_PYTHON: '3.11' + jobs: - build: + tests: runs-on: ubuntu-latest strategy: matrix: @@ -25,11 +29,11 @@ jobs: - name: Test with tox run: tox - if: ${{ matrix.python-version != '3.11' }} + if: ${{ matrix.python-version != env.DEFAULT_PYTHON }} - name: Test with tox (and upload coverage) uses: paambaati/codeclimate-action@v5.0.0 - if: ${{ matrix.python-version == '3.11' }} + if: ${{ matrix.python-version == env.DEFAULT_PYTHON }} env: CC_TEST_REPORTER_ID: 2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c with: