-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (40 loc) · 1.04 KB
/
Copy pathbuild.yaml
File metadata and controls
47 lines (40 loc) · 1.04 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
name: build
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
project:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
- name: Setup Python
uses: actions/setup-python@v4.7.0
with:
python-version: 3.11
- name: Setup Poetry
uses: threeal/setup-poetry-action@v1.0.0
- name: Cache deps
id: cache_deps
uses: actions/cache@v3.3.2
with:
path: .venv
key: poetry-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
- name: Install deps
if: steps.cache_deps.outputs.cache-hit != 'true'
run: poetry install --with dev
- name: Check format
run: |
poetry run isort lib
poetry run black lib
git diff --exit-code HEAD
- name: Check lint
run: poetry run flake8 lib
- name: Run module
run: poetry run starter 10