2020-12-10 14:03:52 +01:00
|
|
|
---
|
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2019-12-15 23:12:15 +01:00
|
|
|
branches: [master]
|
2020-12-10 14:03:52 +01:00
|
|
|
pull_request:
|
2019-12-15 23:12:15 +01:00
|
|
|
branches: [master]
|
2020-12-10 14:03:52 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '41 4 * * 4' # weekly on thursday morning
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-12-15 23:12:15 +01:00
|
|
|
runs-on: ubuntu-latest
|
2020-12-10 14:03:52 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version:
|
|
|
|
- '3.7'
|
2019-12-15 23:12:15 +01:00
|
|
|
- '3.8'
|
2020-12-10 14:03:52 +01:00
|
|
|
- '3.9'
|
2021-10-26 13:14:39 +02:00
|
|
|
- '3.10'
|
2020-12-10 14:03:52 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: python -m pip install --upgrade pip
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Poetry
|
|
|
|
run: |
|
2021-05-21 14:41:47 +02:00
|
|
|
pip install 'poetry>=1.1.0,<1.2.0'
|
2020-12-10 14:03:52 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
poetry install
|
|
|
|
- name: Lint
|
|
|
|
run: |
|
|
|
|
make lint
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
make test
|