diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index 3779541..4288f9c 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -72,6 +72,38 @@ jobs: run: python -m src.HwCodecDetect.run_tests --encoder-count 8 --decoder-count 8 working-directory: HwCodecDetect + test-on-archlinux: + runs-on: ubuntu-latest + + container: + image: archlinux:latest + + env: + PYTHONIOENCODING: utf-8 + + steps: + - name: Update system and install dependencies + run: | + pacman -Syu --noconfirm + pacman -S --noconfirm python python-pip git ffmpeg + + - name: Clone HwCodecDetect + run: git clone -b main --single-branch https://github.com/whyb/HwCodecDetect.git + + - name: Create virtualenv and install project + run: | + python -m venv .venv + source .venv/bin/activate + pip install --upgrade pip + pip install -e . + working-directory: HwCodecDetect + + - name: Run tests + run: | + source .venv/bin/activate + python -m src.HwCodecDetect.run_tests --encoder-count 8 --decoder-count 8 + working-directory: HwCodecDetect + test-on-macos: runs-on: macos-latest