forked from OpenAstronomy/build-python-dist
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.39 KB
/
test_action.yml
File metadata and controls
60 lines (52 loc) · 1.39 KB
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
# This workflow is used to test the action
on:
push:
pull_request:
jobs:
build_pure:
name: Test action (pure wheel)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: build
uses: ./
with:
pure_python_wheel: true
test_groups: test, concurrency
test_extras: recommended
test_command: pytest --pyargs test_package
build_non_pure:
name: Test action (not pure wheel)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: build_not_pure
uses: ./
with:
pure_python_wheel: "false"
test_groups: test
test_extras: recommended
test_command: pytest --pyargs test_package
build_no_groups:
name: Test action (default, no groups)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: build
uses: ./
with:
pure_python_wheel: true
test_extras: recommended
test_command: python -c 'import test_package'
custom_source_directory:
name: Test action (custom source-directory)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: build
uses: ./
with:
source-directory: packages/subpackage
pure_python_wheel: true
test_extras: test
test_command: pytest --pyargs subpackage