-
Notifications
You must be signed in to change notification settings - Fork 23
40 lines (31 loc) · 944 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Lint codebase
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_PYTHON_MYPY: false
VALIDATE_PYTHON_ISORT: false # covered mostly by pylint
VALIDATE_NATURAL_LANGUAGE: false # pedantic and unhelpful
- name: Install Dependencies
run: poetry install
- name: Test with pytest
run: poetry run pytest