Skip to content

Branch name parameters #392

Branch name parameters

Branch name parameters #392

Workflow file for this run

name: Python package
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
pull_request_review_comment:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
pip install -e .
- name: Test with pytest and generate coverage
env:
GITLAB_API_KEY: "${{ secrets.GITLAB_API_KEY }}"
run: |
pytest --cov=./ --cov-report=xml
#- name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# file: ./coverage.xml
# flags: unittests
# env_vars: OS,PYTHON
# name: codecov-umbrella
# fail_ci_if_error: true
# verbose: true