-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.04 KB
/
build.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
name: build
on:
pull_request: []
push:
branches:
- main
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint
uses: chartboost/ruff-action@v1
build:
strategy:
fail-fast: true
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
python-version: ["3.10", "3.11"]
poetry-version: ["1.5.1"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Build
run: |
poetry env use ${{ matrix.python-version }}
poetry install --no-interaction
poetry build
- name: Upload wheel
uses: actions/upload-artifact@v3
with:
name: dist
path: dist