Skip to content

Extend tests

Extend tests #78

Workflow file for this run

---
# yamllint disable rule:line-length
name: "Test Suite"
"on":
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
pytest:
name: Pytest
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: prepare environment
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -qq --yes
sudo apt-get install python3-pip --yes
sudo sh helper/install_deps.sh
pip install -r ./tests/requirements.txt
sudo systemctl disable --now privoxy || true
- name: run pytest
run: |
sudo pkill -9 privoxy || true
# run pytest as sudo to allow pytestshellutils to stop privoxy
sudo pytest -v -s --color yes tests/