mango-explorer/.github/workflows/test-and-lint.yaml

29 lines
559 B
YAML
Raw Normal View History

2021-10-14 08:54:32 -07:00
name: Validate changes with test and lint
on:
2021-10-14 08:54:32 -07:00
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: make setup
- name: Activate venv
run: source .venv/bin/activate
- name: Run tests
run: make test
- name: Run lint
run: make lint