Skip to content

Commit 9525603

Browse files
authored
GitHub actions (#369)
* Add initial workflow file * Fix typo and remove .travis.yml * Clean up
1 parent 0783aa4 commit 9525603

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

.github/workflows/test.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)