-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (58 loc) · 1.74 KB
/
coveo-stew.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
name: coveo-stew
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
publish:
description: "Publish to pypi.org?"
required: false
default: 'false'
jobs:
pyprojectci:
name: pyproject ci
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
poetry-version: [""]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run stew ci
uses: ./.github/workflows/actions/stew-ci
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ matrix.poetry-version }}
publish:
name: Publish to pypi.org
runs-on: ubuntu-latest
needs: pyprojectci
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup global packages
shell: bash
run: python -m pip install --upgrade pip wheel setuptools "poetry<2.0.0" coveo-pypi-cli>=2.1.2 --user --no-warn-script-location
- name: Publish to pypi
uses: ./.github/workflows/actions/publish-to-pypi
with:
pypi-token: ${{ secrets.PYPI_TOKEN }}
pre-release: ${{ github.ref != 'refs/heads/main' }}
dry-run: ${{ github.ref != 'refs/heads/main' && github.event.inputs.publish != 'true' }}
test-action:
runs-on: ubuntu-latest
steps:
- uses: coveo/stew@main
with:
python-version: "3.10"
project-name: coveo-stew