Skip to content

Unblock “Validate Copilot setup files & linters” by fixing workflow Y… #1765

Unblock “Validate Copilot setup files & linters” by fixing workflow Y…

Unblock “Validate Copilot setup files & linters” by fixing workflow Y… #1765

name: Aria-bot tests
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
permissions:
contents: read
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: '3.11'
- name: Install dependencies
run: |
set -euo pipefail
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then
python -m pip install -r requirements.txt
fi
python -m pip install pytest
- name: Run pytest
run: |
set -euo pipefail
python -m pytest tests -q --maxfail=5