Skip to content

Commit aa27443

Browse files
committed
Add Ubuntu and MacOS GitHub CI(run-test.yml)
1 parent 7e9e196 commit aa27443

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

.github/workflows/run-test.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Windows CI for HwCodecDetect
1+
name: Run CI
22

33
on:
44
push:
@@ -15,7 +15,7 @@ jobs:
1515
shell: pwsh
1616

1717
env:
18-
PYTHONIOENCODING: utf-8
18+
PYTHONIOENCODING: utf-8
1919

2020
steps:
2121
- name: Clone HwCodecDetect
@@ -32,3 +32,57 @@ jobs:
3232
- name: Run tests
3333
run: python -m src.HwCodecDetect.run_tests
3434
working-directory: HwCodecDetect
35+
36+
test-on-ubuntu:
37+
runs-on: ubuntu-latest
38+
39+
env:
40+
PYTHONIOENCODING: utf-8
41+
42+
steps:
43+
- name: Install Python 3.10
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: '3.10'
47+
48+
- name: Clone HwCodecDetect
49+
run: git clone -b main --single-branch https://github.com/whyb/HwCodecDetect.git
50+
51+
- name: Upgrade pip
52+
run: python -m pip install --upgrade pip
53+
working-directory: HwCodecDetect
54+
55+
- name: Install dependencies
56+
run: python -m pip install -r requirements.txt
57+
working-directory: HwCodecDetect
58+
59+
- name: Run tests
60+
run: python -m src.HwCodecDetect.run_tests
61+
working-directory: HwCodecDetect
62+
63+
test-on-macos:
64+
runs-on: macos-latest
65+
66+
env:
67+
PYTHONIOENCODING: utf-8
68+
69+
steps:
70+
- name: Install Python 3.10
71+
uses: actions/setup-python@v5
72+
with:
73+
python-version: '3.10'
74+
75+
- name: Clone HwCodecDetect
76+
run: git clone -b main --single-branch https://github.com/whyb/HwCodecDetect.git
77+
78+
- name: Upgrade pip
79+
run: python -m pip install --upgrade pip
80+
working-directory: HwCodecDetect
81+
82+
- name: Install dependencies
83+
run: python -m pip install -r requirements.txt
84+
working-directory: HwCodecDetect
85+
86+
- name: Run tests
87+
run: python -m src.HwCodecDetect.run_tests
88+
working-directory: HwCodecDetect

0 commit comments

Comments
 (0)