Skip to content

Configure Renovate #156

Configure Renovate

Configure Renovate #156

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.10"]
poetry-version: ["<1.2.0", ""]
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<1.3" 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