Skip to content

[pre-commit.ci] pre-commit autoupdate #246

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #246

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-ubuntu:
name: Pytest-Ubuntu
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: prepare environment
env:
HTTPS_SUPPORT: true
run: |
sudo --preserve-env=HTTPS_SUPPORT,CI sh helper/install_deps.sh
- name: run pytest
env:
ACTIONS_STEP_DEBUG: ${{ vars.ACTIONS_STEP_DEBUG }}
RUNNER_DEBUG: ${{ runner.debug }}
run: |
sudo pkill -9 privoxy || true
# run pytest as sudo to allow pytestshellutils to stop privoxy
sudo --preserve-env=ACTIONS_STEP_DEBUG,RUNNER_DEBUG /.venv/bin/pytest -v -s --color yes tests/
pytest-alpine:
name: Pytest-Alpine
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
container:
image: alpine:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: prepare environment
run: |
sh helper/install_deps.sh
- name: run pytest
env:
ACTIONS_STEP_DEBUG: ${{ vars.ACTIONS_STEP_DEBUG }}
RUNNER_DEBUG: ${{ runner.debug }}
run: |
/.venv/bin/pytest -v -s --color yes tests/
pytest-openwrt:
name: Pytest-OpenWRT
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
container:
image: openwrt/rootfs:x86-64-23.05.3
steps:
- name: Prepare OPKG
run: |
mkdir -p /var/lock /var/run
opkg update
- name: Checkout repository (custom)
# required as 'node dist/index.js' succeeds with errors
continue-on-error: true
env:
INPUT_TOKEN: ${{ github.token }}
run: |
set -x
opkg install git-http node-npm
git clone -b "v4" https://github.com/actions/checkout.git /tmp/checkout
cd /tmp/checkout
npm install
node dist/index.js
echo "end: $?"
ls -l "${GITHUB_WORKSPACE}"
- name: prepare environment
run: |
sh helper/install_deps.sh
- name: run pytest
env:
ACTIONS_STEP_DEBUG: ${{ vars.ACTIONS_STEP_DEBUG }}
RUNNER_DEBUG: ${{ runner.debug }}
run: |
/.venv/bin/pytest -v -s --color yes tests/