-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (47 loc) · 1.23 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: PR
on:
push:
branches:
- master
pull_request:
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- run: python3 -m pip install black
- run: python3 -m black --check tukaan/*.py tukaan/*/*.py
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- run: python3 -m pip install isort
- run: python3 -m isort --check tukaan/*.py tukaan/*/*.py
pytest:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- if: matrix.os == 'ubuntu-latest'
run: sudo apt install python3-pil.imagetk
- run: |
python3 -m pip install pytest
python3 -m pip install -r requirements.txt
- uses: GabrielBB/xvfb-action@v1.4
with:
run: python3 -m pytest