File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Python application
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+
4
9
5
10
jobs :
6
11
build :
9
14
10
15
steps :
11
16
- uses : actions/checkout@v1
17
+
12
18
- name : Set up Python 3.7
13
19
uses : actions/setup-python@v1
14
20
with :
15
21
python-version : 3.7
22
+
16
23
- name : Install dependencies
17
24
run : |
18
25
python -m pip install --upgrade pip
27
34
- name : Test with pytest
28
35
run : |
29
36
pip install pytest
30
- pytest
37
+
38
+ pytest test.py
39
+
Original file line number Diff line number Diff line change 1
1
openapi : 3.0.2
2
2
info :
3
3
description : This is Hostpital Demands API
4
+
4
5
version : 0.2.0
6
+
5
7
title : Hostpital Demands API
6
8
# put the contact info for your development or API team
7
9
contact :
@@ -96,14 +98,15 @@ paths:
96
98
schema :
97
99
$ref : ' validations.yaml#/components/schemas/SuspendItem'
98
100
description : Hospital Demands item to suspend 取消医院需求item
101
+
99
102
servers :
100
103
- url : ' https://virtserver.swaggerhub.com/wuhan2020/hospitaldemands/0.2.0'
101
104
components :
102
105
schemas :
103
106
HospitalDemandItem :
104
107
type : object
105
108
required :
106
- - hospital
109
+ - hospitDevelopal
107
110
- demands
108
111
- contact
109
112
- releaseDate
@@ -115,6 +118,7 @@ components:
115
118
example : d290f1ee-6c54-4b01-90e6-d701748f0851
116
119
hospital :
117
120
$ref : ' hospitals.yaml#/components/schemas/HospitalItem'
121
+
118
122
validation :
119
123
$ref : ' validations.yaml#/components/schemas/ValidationItem'
120
124
releaseDate :
Original file line number Diff line number Diff line change
1
+ def test_nothing ():
2
+ """Placeholder for Pytest on Github Actions."""
3
+ assert True
You can’t perform that action at this time.
0 commit comments