Skip to content

Commit 6a09614

Browse files
authored
Create pythonapp.yml
1 parent d005b8a commit 6a09614

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pythonapp.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Python application
2+
3+
on: [push]
4+
5+
jobs:
6+
build01:
7+
runs-on: [linux]
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Set up Python 3.7
11+
uses: actions/setup-python@master
12+
with:
13+
python-version: 3.7
14+
15+
build02:
16+
name: my first job
17+
runs-on: [linux]
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@master
21+
- name: Run a single-line script
22+
run: echo "python"
23+
24+
build03:
25+
name: my second job
26+
runs-on: [linux]
27+
steps:
28+
- name: Run a multi-line script
29+
env:
30+
MY_VAR: Python 3.8
31+
MY_NAME: IMOOC
32+
run: |
33+
echo $MY_VAR
34+
echo My name is $MY_NAME
35+

0 commit comments

Comments
 (0)