-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (58 loc) · 1.99 KB
/
CI.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on: [push]
permissions:
contents: write
pull-requests: write
defaults:
run:
shell: bash
jobs:
test:
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }} - ${{ matrix.os }} sample
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
python-version: [
# '3.9',
# '3.10',
# '3.11',
# "3.12",
'3.13',
# 'pypy-3.10'
]
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
uv sync
- name: Optional build headers
run: sudo apt-get install python3-dev
if: runner.os == 'Linux'
- name: Run pyinstaller
run: |
uv run poe build-cli
- uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-${{ matrix.python-version }}-package
path: dist/*
retention-days: 90
compression-level: 9
merge:
runs-on: ubuntu-latest
needs: [test]
if: github.actor == 'dependabot[bot]' # Detect that the PR author is dependabot
steps:
- uses: actions/checkout@v4
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}