-
Notifications
You must be signed in to change notification settings - Fork 9
65 lines (63 loc) · 2.23 KB
/
Copy pathtest.yml
File metadata and controls
65 lines (63 loc) · 2.23 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
61
62
63
64
65
name: Test
on:
workflow_dispatch: # manual invocation
inputs:
pre_commit:
description: "Run pre-commit?"
required: true
type: boolean
default: true
unit_tests:
description: "Run unit tests?"
required: true
type: boolean
default: true
invocation_tests:
description: "Run invocation tests?"
required: true
type: boolean
default: true
integration_tests:
description: "Run integration-like workflow submission tests?"
required: true
type: boolean
default: true
unit_test_args:
description: "CLI args to pass verbatim to pytest (unit tests)."
required: false
type: string
default: ""
integration_test_args:
description: "CLI args to pass verbatim to pytest (integration tests)."
required: false
type: string
default: ""
pull_request:
types: [opened, synchronize]
branches: [main, develop] # have to manually change these
jobs:
test:
uses: hpcflow/github-support/.github/workflows/test-impl.yml@main
with:
pre_commit: ${{ github.event_name == 'pull_request' || github.event.inputs.pre_commit == 'true' }}
unit_tests: ${{ github.event_name == 'pull_request' || github.event.inputs.unit_tests == 'true' }}
integration_tests: ${{ github.event_name == 'pull_request' || github.event.inputs.integration_tests == 'true' }}
invocation_tests: ${{ github.event_name == 'pull_request' || github.event.inputs.invocation_tests == 'true' }}
unit_test_args: ${{ github.event.inputs.unit_test_args }}
integration_test_args: ${{ github.event.inputs.integration_test_args }}
ref: ${{ github.ref }}
head-ref: ${{ github.head_ref }}
full-repo-name: ${{ github.event.pull_request.head.repo.full_name }}
app_package: matflow
CLI_module: matflow.cli
CLI_path: matflow/cli.py
CLI_path_win: matflow\cli.py
executable_name: matflow
pytest_args: ""
python-versions: |
["3.10", "3.11", "3.12", "3.13"]
secrets:
pre-commit-token: ${{ secrets.HPCFLOW_ACTIONS_TOKEN || secrets.GITHUB_TOKEN }}
permissions:
id-token: write
contents: write