Refreshed all lock files, Prevent releases for unrelated files #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coveo-ref | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'coveo-ref/**' | |
- '!**.lock' | |
- '!**.md' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- 'coveo-ref/**' | |
- '.github/workflows/coveo-ref.yml' | |
- '!**.md' | |
workflow_dispatch: | |
inputs: | |
publish: | |
description: "Publish to pypi.org?" | |
required: false | |
default: 'false' | |
jobs: | |
stew-ci: | |
name: pyproject ci | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8, "3.10"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Run stew ci | |
uses: coveo/stew@main | |
with: | |
project-name: ${{ github.workflow }} | |
python-version: ${{ matrix.python-version }} | |
poetry-version: "<2" | |
publish: | |
name: Publish to pypi.org | |
runs-on: ubuntu-latest | |
needs: stew-ci | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Publish to pypi | |
uses: ./.github/workflows/actions/publish-to-pypi | |
with: | |
project-name: ${{ github.workflow }} | |
pypi-token: ${{ secrets.PYPI_TOKEN_COVEO_REF }} | |
pre-release: ${{ github.ref != 'refs/heads/main' }} | |
dry-run: ${{ github.ref != 'refs/heads/main' && github.event.inputs.publish != 'true' }} |