1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

61 lines
1.6 KiB
YAML
Raw Normal View History

2020-02-13 18:27:33 -07:00
name: Run Tests
on:
2020-02-13 21:17:02 -07:00
push:
2020-02-13 18:27:33 -07:00
branches:
- v1.0.0
jobs:
build:
runs-on: ubuntu-18.04
2020-02-13 21:30:12 -07:00
services:
redis:
image: redis
2020-02-13 21:32:06 -07:00
ports:
- 6379:6379
2020-02-13 18:27:33 -07:00
steps:
- name: Setup Python 3.6
2020-02-13 18:27:33 -07:00
uses: actions/setup-python@v1
with:
python-version: 3.6.10
2020-02-13 21:30:12 -07:00
- name: Clone Repository
uses: actions/checkout@v2
2020-02-13 21:41:54 -07:00
with:
ref: v1.0.0
2020-02-13 23:51:31 -07:00
# - name: Install Python Dependencies
# run: |
# pip install --user pipx
# export PATH=/home/runner/.local/bin:$PATH
# pipx ensurepath
# pipx install poetry
2020-02-13 23:44:02 -07:00
- name: Install Application
uses: abatilo/actions-poetry@v1.5.0
2020-02-13 18:27:33 -07:00
with:
2020-02-13 23:44:02 -07:00
python_version: 3.6.10
2020-02-13 23:49:43 -07:00
poetry_version: 1.0.0
2020-02-13 23:44:02 -07:00
args: install
- name: Lint
2020-02-13 23:59:13 -07:00
run: |
poetry run flake8 hyperglass
# - name: Lint
# uses: abatilo/actions-poetry@v1.5.0
# with:
# python_version: 3.6.10
# poetry_version: 1.0.0
# args: run flake8 hyperglass
2020-02-13 23:44:02 -07:00
# - name: lint
# uses: ricardochaves/python-lint@v1.1.0
# with:
# python-root-list: hyperglass
# use-black: true
# use-flake8: true
# use-isort: true
# use-pylint: false
# use-pycodestyle: false
# use-mypy: false
# extra-pylint-options: ""
# extra-pycodestyle-options: ""
# extra-flake8-options: ""
# extra-black-options: ""
# extra-mypy-options: ""
# extra-isort-options: ""