-
Notifications
You must be signed in to change notification settings - Fork 154
42 lines (34 loc) · 992 Bytes
/
code-quality.yaml
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
name: code-quality
on:
push:
branches:
- master
- release/* # this is a backup. prefer publishing using a tagged master.
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- master
jobs:
codestyle:
name: codestyle
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version: [ "3.9", "3.11" ]
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry and dependencies
run: |
set -e
curl -sSL https://install.python-poetry.org | python3 -
poetry install --all-extras
- uses: reviewdog/action-setup@v1
- name: run mypy
run: poetry run mypy --no-warn-no-return dataclasses_json