Skip to content

Update build_and_test.yml #91

Update build_and_test.yml

Update build_and_test.yml #91

Workflow file for this run

name: Build and test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: matrix.python-version
- name: Install package
run: make install
- name: Run tests
run: make test
- name: Upload coverage to Codecov
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == "3.11" }}

Check failure on line 25 in .github/workflows/build_and_test.yml

View workflow run for this annotation

GitHub Actions / Build and test

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_test.yml (Line: 25, Col: 13): Unexpected symbol: '"3'. Located at position 58 within expression: matrix.os == 'ubuntu-latest' && matrix.python-version == "3.11"
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true