tests #771
This file contains hidden or 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: tests | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: 0 4 * * MON,FRI | |
| jobs: | |
| vm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Install build and test dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential python3-pip | |
| pip install ruff mypy | |
| - name: Build | |
| run: make | |
| - name: Run tests | |
| run: sudo python3 -m unittest -v | |
| - name: Run linters | |
| run: make lint | |
| container: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| container: | |
| - docker.io/amd64/ubuntu:devel | |
| - docker.io/amd64/debian:sid | |
| - registry.fedoraproject.org/fedora:latest | |
| - registry.fedoraproject.org/fedora:rawhide | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Run container test | |
| run: sudo tests/run-container "${{ matrix.container }}" |