Skip to content

Bump black from 23.12.1 to 24.3.0 #253

Bump black from 23.12.1 to 24.3.0

Bump black from 23.12.1 to 24.3.0 #253

Workflow file for this run

name: Coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
code-coverage:
runs-on: [ubuntu-latest]
strategy:
matrix:
python-version: ["3.12"]
poetry-version: ["1.7.1"]
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 Python Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m poetry install
- name: Running tests with coverage
run: |
python -m poetry run python -m pytest -v --cov-report xml --cov=src/samplics tests
python -m poetry run python -m codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage1.xml,./coverage2.xml
# directory: ./coverage/reports/
# flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
# path_to_write_report: ./coverage/codecov_report.txt
verbose: true