Skip to content

Use settings.get_profile #18

Use settings.get_profile

Use settings.get_profile #18

Workflow file for this run

---
name: Coverage
on:
pull_request:
push:
branches: [main]
paths:
- dumbpw/**
- tests/**
- .coveragerc
- .github/workflows/coverage.yaml
jobs:
publish:
runs-on: ubuntu-latest
steps:
# ----------------------------------------------
# check-out repo and set-up python
# ----------------------------------------------
- name: Check out repository
uses: actions/[email protected]
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
# ----------------------------------------------
# build virtual environment and install
# ----------------------------------------------
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/[email protected]
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies if cached venv not found
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install module
run: poetry install --no-interaction
# ----------------------------------------------
# publish coverage report
# ----------------------------------------------
- name: Publish coverage report
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageCommand: poetry run pytest --cov-report xml
coverageLocations: ${{github.workspace}}/cov/coverage.xml:coverage.py