Skip to content

FIX: coverage and clean up matrix #882

FIX: coverage and clean up matrix

FIX: coverage and clean up matrix #882

Workflow file for this run

name: Python CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
unittest:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
test-strategy: [ 'unit', 'integration' ]
exclude:
- test-strategy: 'unit'
mongodb-version: '4.4'
- test-strategy: 'unit'
mongodb-version: '5.0'
- test-strategy: 'unit'
mongodb-version: '6.0'
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Test Strategy
if: ${{ matrix.test-strategy == 'integration'

Check failure on line 27 in .github/workflows/python-ci.yml

View workflow run for this annotation

GitHub Actions / Python CI

Invalid workflow file

The workflow is not valid. .github/workflows/python-ci.yml (Line: 27, Col: 13): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
run: echo 'TESTTYPE=integtest' >> "$GITHUB_ENV"
- uses: Whist-Team/actions/setup-poetry@v2
with:
python-version: ${{ matrix.python-version }}
- name: Start MongoDB
if: ${{ matrix.mongodb-version }}
uses: supercharge/mongodb-github-action@v1
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: 'pytest & coverage'
shell: bash
run: 'poetry run python -m pytest -m ${{ env.TESTTYPE }} --cov=whist_server --cov-report=xml --cov-config=.coveragerc'
- name: Upload to codecoverage
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}