Skip to content

add pytest-xdist to c2fj[tests] install #2

add pytest-xdist to c2fj[tests] install

add pytest-xdist to c2fj[tests] install #2

Workflow file for this run

# Note: add all job names to the deploy-status.needs.
name: Tests
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
test_programs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[tests]
- name: Test pytest
run: |
pytest -n auto -vv --junitxml=./run-test-results.xml
- name: Show tests results
if: always()
uses: pmeier/pytest-results-action@main
with:
path: ./*-test-results.xml
# This allows us to have a branch protection rule this entire workflow
deploy-status:
runs-on: ubuntu-latest
needs: [ test_programs ]
if: always()
steps:
- name: Successful deploy
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failing deploy
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1