File: static-analyses.yml

package info (click to toggle)
wsdd 2%3A0.8-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: python: 1,560; sh: 259; makefile: 21; xml: 14
file content (39 lines) | stat: -rw-r--r-- 928 bytes parent folder | download
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
name: "PEP8 and mypy"

on:
  push:
    branches: ["master", "feat/workflows"]
  pull_request:
    branches: ["master", "feat/workflows"]
  schedule:
    - cron: '0 0 * * */10'

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Set up Python 3.7
      uses: actions/setup-python@v1
      with:
        python-version: 3.7

    - name: Python 3.7 syntax check
      run: python -m py_compile src/wsdd.py

    - name: Lint with flake8
      run: |
        pip install flake8
        flake8 --count --show-source --statistics src

    - name: mypy type check
      run: |
        pip install mypy==0.910
        mypy --python-version=3.7 src/wsdd.py
        mypy --python-version=3.8 src/wsdd.py
        mypy --python-version=3.9 src/wsdd.py
        mypy --python-version=3.10 src/wsdd.py
        mypy --python-version=3.11 src/wsdd.py
        mypy --python-version=3.12 src/wsdd.py