Skip to content

'tdr' branch to reduce complexity, speed runtime. For #1712 #6388

'tdr' branch to reduce complexity, speed runtime. For #1712

'tdr' branch to reduce complexity, speed runtime. For #1712 #6388

Workflow file for this run

name: pdr-backend tests
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
if: ${{ !(github.event.action == 'synchronized' && github.head_ref == 'main') }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Setup repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install dependencies
working-directory: ${{ github.workspace }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Test with pytest
id: pytest
run: |
coverage run --source=pdr_backend --omit=*/test/*,*/test_noganache/* -m pytest
coverage report
coverage xml
- name: Publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}