-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (31 loc) · 1.15 KB
/
build_package.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
name: Build spapros Package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python: ["3.9", "3.10"]
steps:
- uses: actions/[email protected]
name: Check out source-code repository
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Upgrade pip
run: |
pip install --upgrade pip
pip --version
- name: Install Poetry
run: |
pip install poetry
poetry --version
- name: Build package
run: poetry build --ansi
- name: Install required twine packaging dependencies
run: pip install setuptools wheel twine
- name: Check twine package
run: twine check dist/*