Skip to content

Overall Test Workflow #12

Overall Test Workflow

Overall Test Workflow #12

Workflow file for this run

name: Overall Test Workflow
on:
pull_request_review:
types: [submitted]
jobs:
tests:
if: github.event.review.state == 'approved'
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python-version}}
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install Dependencies
run: pipenv install --dev --python=${{ inputs.python-version }}
- name: Setup LibMagic (MacOS)
if: matrix.os == 'macos-latest'
run: brew install libmagic
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Frontend Bundle Build
run: pipenv run python tools/frontend/bundle_build.py
- name: Install Playwright
run: pipenv run playwright install chromium --with-deps
- name: Pytest
run: pipenv run pytest --cov=taipy --cov-append --cov-report="xml:overall-coverage.xml" --cov-report term-missing tests
- name: Coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./overall-coverage.xml
title: Taipy Overall Coverage Report
- name: Notify user if failed
if: failure() && github.event_name == 'workflow_dispatch'
run: |
if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then
curl "${{ secrets.notify_endpoint }}" -d '{"username": "${{ github.event.inputs.user-to-notify }}", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' -H "Content-Type: application/json"
fi
shell: bash