CI: Put default Python version into a variable
This commit is contained in:
parent
9e05fae304
commit
c04e49b5a3
1 changed files with 8 additions and 4 deletions
|
@ -1,11 +1,15 @@
|
||||||
name: Tests (tox)
|
---
|
||||||
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
|
env:
|
||||||
|
DEFAULT_PYTHON: '3.11'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -25,11 +29,11 @@ jobs:
|
||||||
|
|
||||||
- name: Test with tox
|
- name: Test with tox
|
||||||
run: tox
|
run: tox
|
||||||
if: ${{ matrix.python-version != '3.11' }}
|
if: ${{ matrix.python-version != env.DEFAULT_PYTHON }}
|
||||||
|
|
||||||
- name: Test with tox (and upload coverage)
|
- name: Test with tox (and upload coverage)
|
||||||
uses: paambaati/codeclimate-action@v5.0.0
|
uses: paambaati/codeclimate-action@v5.0.0
|
||||||
if: ${{ matrix.python-version == '3.11' }}
|
if: ${{ matrix.python-version == env.DEFAULT_PYTHON }}
|
||||||
env:
|
env:
|
||||||
CC_TEST_REPORTER_ID: 2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c
|
CC_TEST_REPORTER_ID: 2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c
|
||||||
with:
|
with:
|
Loading…
Reference in a new issue