|
1 | | -name: Windows CI for HwCodecDetect |
| 1 | +name: Run CI |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
15 | 15 | shell: pwsh |
16 | 16 |
|
17 | 17 | env: |
18 | | - PYTHONIOENCODING: utf-8 |
| 18 | + PYTHONIOENCODING: utf-8 |
19 | 19 |
|
20 | 20 | steps: |
21 | 21 | - name: Clone HwCodecDetect |
|
32 | 32 | - name: Run tests |
33 | 33 | run: python -m src.HwCodecDetect.run_tests |
34 | 34 | 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