-
Notifications
You must be signed in to change notification settings - Fork 846
68 lines (55 loc) · 1.53 KB
/
test_plugin_uploader.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Test Plugin Uploader
on:
push:
branches:
- main
paths:
- 'resources/plugin_uploader/**'
- '.github/workflows/test_plugin_uploader.yml'
pull_request:
paths:
- 'resources/plugin_uploader/**'
- '.github/workflows/test_plugin_uploader.yml'
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: install deps
working-directory: resources/plugin_uploader
run: pip install -r requirements_test.txt
- name: run unit tests
working-directory: resources/plugin_uploader
run: pytest .
ruff-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: chartboost/ruff-action@v1
with:
version: 0.4.10
src: './resources/plugin_uploader'
pyright-type-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: install deps
working-directory: resources/plugin_uploader
run: pip install -r requirements_test.txt
- name: install pyright
run: pip install pyright==1.1.378
- name: run pyright
working-directory: resources/plugin_uploader
run: pyright