Debian Codegraph @

.github/workflows/test.yml

raw
1 # This workflow will install Python dependencies, run tests and lint with a single version of Python
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
4 name: Run Tests
5
6 on:
7 push:
8 branches: [master]
9 pull_request:
10 branches: [master]
11
12 jobs:
13 build:
14 runs-on: ubuntu-latest
15
16 steps:
17 - uses: actions/checkout@v2
18 - name: Set up Python 3.13
19 uses: actions/setup-python@v1
20 with:
21 python-version: 3.13
22 - name: Install dependencies
23 run: |
24 pip install -r requirements.txt
25 pip install -r requirements-test.txt
26 - name: Lint with flake8
27 run: |
28 flake8 hatasmota
29 - name: Lint with pylint
30 run: |
31 pylint hatasmota
32 - name: Lint with mypy
33 run: |
34 mypy hatasmota
35 - name: Check formatting with black
36 run: |
37 black hatasmota --check --diff
38 - name: Check imports with isort
39 run: |
40 isort hatasmota --check --diff --combine-as --force-sort-within-sections --profile black