-
Notifications
You must be signed in to change notification settings - Fork 2
94 lines (81 loc) · 2.58 KB
/
ci.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
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
name: CI
on:
push:
branches: [main]
tags: ["*.*.*"]
paths-ignore:
- "**.md"
- "**.png"
- "**.jpg"
- "**.gif"
jobs:
# linux-macos:
# timeout-minutes: 20
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.11"]
# os: [linux, darwin]
# steps:
# - uses: actions/checkout@v4
# name: Checkout code
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# - name: Cache dependencies
# uses: actions/cache@v4
# with:
# path: |
# ~/.cache/pypoetry/artifacts
# ~/.cache/pypoetry/repository
# ~/.cache/pypoetry/virtualenvs
# key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
# restore-keys: |
# ${{ runner.os }}-poetry-${{ matrix.python-version }}-
# - name: Run CI build
# run: |
# make ci
# env:
# BUILD_OS: ${{ matrix.os }}
# - name: Upload wheel as artifact
# if: matrix.python-version == '3.11' && matrix.os == 'linux'
# uses: actions/upload-artifact@v4
# with:
# name: speech-dist
# path: dist/*.whl
# retention-days: 5
# - name: Release GitHub Assets
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.11' && matrix.os == 'linux'
# with:
# # Draft for official releases to prepare and review release notes before publishing
# draft: ${{ !contains(github.ref, 'rc') }}
# fail_on_unmatched_files: true
# prerelease: ${{ contains(github.ref, 'rc') }}
# files: dist/*.whl
# - name: Publish to PyPI
# if: startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.11' && matrix.os == 'linux'
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.CI_PYPI_API_TOKEN }}
# PUBLISH_SOURCE: ${{ matrix.os == 'linux' && '1' || '' }}
# run: |
# make publish-pypi
windows-amd64:
timeout-minutes: 20
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
name: Checkout code
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: CI
shell: powershell
run: |
make ci