-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.02 KB
/
build-python.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
name: build-python
on: push
jobs:
build-linux-x86_64:
name: Build for Linux on x86_64
runs-on: ubuntu-20.04
strategy:
matrix:
python:
- 3.13.0
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: "recursive"
- name: Install python
uses: gabrielfalcao/pyenv-action@main
with:
default: "${{ matrix.python }}"
command: pip install -U pip # upgrade pip after installing python
- name: Install deps
run: |
python3.13 -m pip install pipx
pipx install poetry poethepoet
pipx inject poetry "poetry-dynamic-versioning[plugin]"
- name: Setup project
run: |
pwd
python3.13 -m venv .venv
source .venv/bin/activate
- name: Build project
run: poe build
- name: Upload build artifact
uses: actions/[email protected]
with:
name: linux-x86_64-artifact
path: dist/