2020-05-04 07:10:09 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2020-07-15 20:26:14 +00:00
|
|
|
|
2020-05-04 07:10:09 +00:00
|
|
|
build:
|
2020-07-15 20:26:14 +00:00
|
|
|
|
2020-05-04 07:10:09 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-05-04 07:21:44 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-05-20 06:07:58 +00:00
|
|
|
python-version: [3.8]
|
2020-05-04 07:10:09 +00:00
|
|
|
|
|
|
|
steps:
|
2020-07-15 20:26:14 +00:00
|
|
|
|
2020-05-04 07:10:09 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2020-05-04 07:21:44 +00:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
2020-05-19 21:03:54 +00:00
|
|
|
- name: Install tools
|
2020-05-04 07:21:44 +00:00
|
|
|
run: |
|
2021-04-23 07:46:51 +00:00
|
|
|
pip install poetry && poetry install
|
2020-06-08 19:55:33 +00:00
|
|
|
|
2020-07-15 20:26:14 +00:00
|
|
|
- name: Check formatting and run linters
|
2020-05-19 21:03:54 +00:00
|
|
|
run: |
|
2020-07-15 20:26:14 +00:00
|
|
|
sh check.sh
|