Skip to content

add an executable property to the custom runners #182

add an executable property to the custom runners

add an executable property to the custom runners #182

Workflow file for this run

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.8", "3.9", "3.10", "3.11", "3.12"]
poetry-version: [""]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- 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@v3
- name: Setup python 3.10
uses: actions/setup-python@v4
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