-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (32 loc) · 881 Bytes
/
check.yml
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
---
name: Check
on: [push, pull_request]
jobs:
python:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v2.4.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: pip3 install black bleak construct flake8 isort Pillow pylint
- name: Check code
run: ./scripts/check_python.sh
c:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2.4.0
- name: Install requirements
run: |
sudo apt update
sudo apt install clang-format
- name: Check code
run: ./scripts/check_c.sh