Skip to content

Commit ca2de2a

Browse files
authored
Merge pull request #3 from whyb/testci
Add archlinux github workflow
2 parents 8e14e11 + dc9ff6e commit ca2de2a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/run-test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,38 @@ jobs:
7272
run: python -m src.HwCodecDetect.run_tests --encoder-count 8 --decoder-count 8
7373
working-directory: HwCodecDetect
7474

75+
test-on-archlinux:
76+
runs-on: ubuntu-latest
77+
78+
container:
79+
image: archlinux:latest
80+
81+
env:
82+
PYTHONIOENCODING: utf-8
83+
84+
steps:
85+
- name: Update system and install dependencies
86+
run: |
87+
pacman -Syu --noconfirm
88+
pacman -S --noconfirm python python-pip git ffmpeg
89+
90+
- name: Clone HwCodecDetect
91+
run: git clone -b main --single-branch https://github.com/whyb/HwCodecDetect.git
92+
93+
- name: Create virtualenv and install project
94+
run: |
95+
python -m venv .venv
96+
source .venv/bin/activate
97+
pip install --upgrade pip
98+
pip install -e .
99+
working-directory: HwCodecDetect
100+
101+
- name: Run tests
102+
run: |
103+
source .venv/bin/activate
104+
python -m src.HwCodecDetect.run_tests --encoder-count 8 --decoder-count 8
105+
working-directory: HwCodecDetect
106+
75107
test-on-macos:
76108
runs-on: macos-latest
77109

0 commit comments

Comments
 (0)