Prepare 0.0.8.109.gaa25f15-2 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches-ignore: | |
- "gh-readonly-queue/**" | |
workflow_dispatch: | |
pull_request: | |
merge_group: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Build container | |
run: docker build -t pdudaemon-ci -f Dockerfile.dockerhub . | |
- name: Run pytest | |
run: docker run -v $(pwd):/p -w /p pdudaemon-ci /root/.local/pipx/venvs/pdudaemon/bin/pytest | |
- name: Run functional tests | |
run: docker run -v $(pwd):/p -w /p pdudaemon-ci sh -c "./share/pdudaemon-test.sh" | |
tests-trixie: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out repository code | |
uses: actions/checkout@v4 | |
- name: Build container | |
run: docker build --build-arg DEBIAN_VERSION=trixie -t pdudaemon-ci -f Dockerfile.dockerhub . | |
- name: Run pytest | |
run: docker run -v $(pwd):/p -w /p pdudaemon-ci /root/.local/share/pipx/venvs/pdudaemon/bin/pytest | |
- name: Run functional tests | |
run: docker run -v $(pwd):/p -w /p pdudaemon-ci sh -c "./share/pdudaemon-test.sh" | |
tests-trixie-python312: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out repository code | |
uses: actions/checkout@v4 | |
- name: Build container | |
run: > | |
docker build | |
--build-arg DEBIAN_VERSION=trixie | |
--build-arg PYTHON=python3.12 | |
-t pdudaemon-ci -f Dockerfile.dockerhub | |
. | |
- name: Run pytest | |
run: docker run -v $(pwd):/p -w /p pdudaemon-ci /root/.local/share/pipx/venvs/pdudaemon/bin/pytest | |
- name: | |
# disable snmp as pysnmp is incompatible with python3.12 | |
run: sed -i 's,"snmpv.","localcmdline",g' share/pdudaemon.conf | |
- name: Run functional tests | |
run: docker run -v $(pwd):/p -w /p pdudaemon-ci sh -c "./share/pdudaemon-test.sh" |