-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (37 loc) · 1.03 KB
/
python-package.yml
File metadata and controls
46 lines (37 loc) · 1.03 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
name: Python package
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build-package:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: false
- name: Check out required packaging submodules
run: |
git submodule sync -- 3rd_party/meshio
git submodule update --init --depth=1 3rd_party/meshio
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install packaging tools
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build distributions
run: python -m build
- name: Check distributions
run: python -m twine check dist/*
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/*
if-no-files-found: error