File tree Expand file tree Collapse file tree 3 files changed +30
-7
lines changed
Expand file tree Collapse file tree 3 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Python package
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ lint :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v2
10+ - name : Set up Python
11+ uses : actions/setup-python@v2
12+ with :
13+ python-version : ' 3.7.x'
14+ architecture : ' x64'
15+ - name : Cache pip
16+ uses : actions/cache@v2
17+ with :
18+ path : ~/.cache/pip
19+ # Look to see if there is a cache hit for the corresponding requirements file
20+ key : ${{ runner.os }}-pip-${{ hashFiles('./ci/requirements.txt') }}
21+ restore-keys : |
22+ ${{ runner.os }}-pip-
23+ ${{ runner.os }}-
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install openapi3
28+ - name : openapi linter
29+ run : |
30+ python -m openapi3 openapi.yaml
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments