-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 869 Bytes
/
Copy pathpython-check.yml
File metadata and controls
39 lines (31 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Python checks
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: video-translator-checks-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Compile application, package, tests and tools
shell: pwsh
run: python -m compileall -q video_translator.py videotranslator tests tools
- name: Run offline regression tests
shell: pwsh
run: |
$env:TEMP = $env:RUNNER_TEMP
$env:TMP = $env:RUNNER_TEMP
python -m unittest discover -s tests -v