Skip to content

Commit cccaba0

Browse files
author
mganisin
authored
Merge pull request 3scale-qe#100 from mganisin/github-actions
Github actions to run smoke tests
2 parents f1e0bf7 + 7cdbf0c commit cccaba0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: lint & smoke
2+
on: [push]
3+
jobs:
4+
lint-and-smoke:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-python@v2
9+
with:
10+
python-version: '3.7'
11+
architecture: x64
12+
- uses: actions/cache@v2
13+
env:
14+
cache-name: pipenv-virtualenvs-cache
15+
with:
16+
path: ~/.local/share/virtualenvs
17+
key: ${{env.cache-name}}-${{runner.os}}-${{hashFiles('Pipfile.lock')}}
18+
- name: setup
19+
run: |
20+
pip install pipenv
21+
pipenv install --dev
22+
- name: lint
23+
run: |
24+
pipenv run python -m flake8 .
25+
- name: smoke
26+
run: |
27+
pipenv run python -m pytest -m smoke

0 commit comments

Comments
 (0)