-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.01 KB
/
ci.yml
File metadata and controls
55 lines (49 loc) · 1.01 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
name: CI
on:
push:
workflow_dispatch:
jobs:
start:
name: Start
runs-on: ubuntu-latest
steps:
- name: Run python
run: |
# Commands
print("::group::System")
import sys
import os
import time
print(sys.version)
print(os.environ['PATH'])
print("::endgroup::")
shell: python
approval:
needs: start
environment: manual_approval
name: Manual
runs-on: ubuntu-latest
concurrency:
group: concurrency-ci
cancel-in-progress: true
steps:
- name: Run python
run: |
echo "::group::Result"
echo "Approved"
echo "::endgroup::"
shell: bash
finish:
needs: approval
name: finish
runs-on: ubuntu-latest
steps:
- name: Run python
run: |
import sys
import os
import time
print(sys.version)
print(os.environ['PATH'])
time.sleep(3)
shell: python