-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.2 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
name: ci
on:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
workflow_dispatch:
push:
branches:
- '**'
tags-ignore:
- '*.*' # don't run ci on tags, should already have run on commit tag points to.
paths-ignore:
- README.md # don't run for readme changes.
pull_request:
branches:
- 'dependabot*'
schedule:
- cron: '0 0 * * 1' # Every monday at midnight
jobs:
build:
runs-on: macos-12
strategy:
matrix:
python: ["3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install python packages
run: |
poetry install
- name: Run tests
run: |
poetry run task tests
- name: Lint black
run: |
poetry run task ci_lint
- name: Lint isort
run: |
poetry run task ci_isort
- name: Lint mypy
run: |
poetry run task mypy