-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.34 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on:
workflow_call:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
name: ${{ github.repository }}
runs-on: ubuntu-latest
strategy:
# Ensure that a wheel builder finishes even if another fails
fail-fast: false
matrix:
python-version: [3.x]
poetry-version: [latest]
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{matrix.poetry-version}}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
cache: "poetry"
- name: Set up Poetry Dynamic Versioning
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build Pure Python Wheels and Source Distribution
run: |
poetry build
- name: Check sdist Metadata
run: pipx run twine check dist/*
- name: Store Wheel and sdist Artifacts
uses: actions/upload-artifact@v3
with:
name: distributions
path: dist/*