Skip to content

Commit

Permalink
make a package out of coveo-testing/ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapich committed Oct 27, 2023
1 parent b4316ef commit dfc2ff5
Show file tree
Hide file tree
Showing 16 changed files with 1,877 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/coveo-ref.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: coveo-testing

on:
push:
branches:
- main
paths:
- 'coveo-ref/**'

pull_request:
types: [opened, synchronize, reopened]
paths:
- 'coveo-ref/**'

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: coveo-ref
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: coveo-ref
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' }}
Loading

0 comments on commit dfc2ff5

Please sign in to comment.