Skip to content

Custom request headers #202

Custom request headers

Custom request headers #202

Workflow file for this run

name: Unit Test
on: [push, pull_request]
permissions:
contents: read
jobs:
python-unittest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, '3.10', '3.11', '3.12', '3.13']
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install ".[dev]"
- name: Playwright install
run: playwright install
- name: Run unittest
id: pytest
run: |
OUTPUT="$(pytest)"
RESULT=$?
echo "$OUTPUT"
FAULTY_FILES="$(echo "$OUTPUT" | grep obtained)"
echo "$FAULTY_FILES"
echo "pytest<<EOF${FAULTY_FILES}EOF" >> $GITHUB_OUTPUT
exit $RESULT
- name: Upload failed image artifact
if: failure()
uses: actions/upload-artifact@v4
with:
name: failed-images-${{ matrix.os }}-${{ matrix.python-version }}
path: |
${{ steps.pytest.outputs.pytest }}