-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.25 KB
/
python.yml
File metadata and controls
55 lines (44 loc) · 1.25 KB
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
50
51
52
53
54
55
name: CI
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
style:
name: Style
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message || '', '/noci') }}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install style tools
run: python -m pip install --upgrade pip black isort
- name: Check import order
run: isort --check-only --diff .
- name: Check formatting
run: black --check .
syntax:
name: Syntax (${{ matrix.python-version }})
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message || '', '/noci') }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.12"
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Compile Python sources
run: python -m py_compile vae.py