Skip to content

feature/add codecov config #22

feature/add codecov config

feature/add codecov config #22

Workflow file for this run

name: Build and Test
on:
pull_request:
branches: [ main ]
paths-ignore:
- '**/_version.py'
push:
branches: [ main ]
tags-ignore:
- 'v*'
paths-ignore:
- '**/_version.py'
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
env:
PYTHON_VERSION: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up AllenInstitute Repo Authorization
uses: ./.github/actions/setup-ai-github-urls
with:
token: ${{ secrets.AI_PACKAGES_TOKEN }}
- name: Run Release
run: |
make release
shell: bash
- name: Upload coverage reports
if: |

Check failure on line 42 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 42, Col: 13): Unexpected symbol: '"3'. Located at position 191 within expression: success() && ( (github.event_name == 'pull_request' && github.base_ref == 'main' ) || (github.event_name == 'push' && github.ref_name == 'main') ) && matrix.python-version == "3.11"
${{
success()
&& (
(github.event_name == 'pull_request' && github.base_ref == 'main' )
|| (github.event_name == 'push' && github.ref_name == 'main')
)
&& matrix.python-version == "3.11"
}}
uses: codecov/codecov-action@v5
with:
# https://github.com/codecov/codecov-action#arguments
# token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON_VERSION