-
-
Notifications
You must be signed in to change notification settings - Fork 10
100 lines (79 loc) · 2.24 KB
/
push.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: PyTest and Publish
on:
push:
tags: ['v[0-9].[0-9]+.[0-9]+']
jobs:
test1:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: FedericoCarboni/setup-ffmpeg@v3
- name: Install pdm
run: |
python -m pip install pdm
pdm install --no-editable -G test
- name: Run missing modules test
run: pdm run pytest tests/test_modules.py # should run before deluxe deps installed
- name: Run deluxe pytest
run: |
pdm install --no-editable -G deluxe
pdm run pytest
test2:
needs: test1
strategy:
fail-fast: false
max-parallel: 8
matrix:
nv: [ {os: windows-latest, py: "3.12"}, {os: macos-13, py: "3.11"} ]
runs-on: ${{ matrix.nv.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.nv.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.nv.py }}
- uses: FedericoCarboni/setup-ffmpeg@v3
- name: Install Dependencies
run: |
python -m pip install pdm
pdm install --no-editable -G test
- name: Run deluxe pytest
run: |
pdm install --no-editable -G deluxe
pdm run pytest
publish:
needs: [test1, test2]
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: |
python -m pip install pdm
pdm config request_timeout 100
- name: Build and publish
run: pdm publish -u __token__ -P ${{ secrets.PYPI_TOKEN }}
release:
needs: publish
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: chapmanjacobd/create-release-node16@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false