forked from openWB/core
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1002 Bytes
/
github-actions-python.yml
File metadata and controls
31 lines (29 loc) · 1002 Bytes
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
name: Python application
on: pull_request
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest paho-mqtt requests-mock jq pyjwt==2.6.0 bs4 pkce typing_extensions python-dateutil==2.8.2
- name: Flake8 with annotations in packages folder
uses: TrueBrain/actions-flake8@v2.1
with:
path: packages
flake8_version: 5.0.4
- name: Flake8 with annotations in runs folder
uses: TrueBrain/actions-flake8@v2.1
with:
path: runs
flake8_version: 5.0.4
- name: Test with pytest
run: |
PYTHONPATH=packages python -m pytest packages --log-cli-level=DEBUG
PYTHONPATH=runs python -m pytest packages --log-cli-level=DEBUG