Merge pull request #163 from coveooss/dependabot/pip/urllib3-2.0.6 #49
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-arnparse | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'coveo-arnparse/**' | |
- '.github/workflows/**' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- 'coveo-arnparse/**' | |
- '.github/workflows/**' | |
jobs: | |
stew: | |
name: stew ci | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8, 3.9, "3.10"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run stew ci | |
uses: ./.github/workflows/actions/stew-ci | |
with: | |
project-name: ${{ github.workflow }} | |
python-version: ${{ matrix.python-version }} | |
publish: | |
name: Publish to pypi.org | |
runs-on: ubuntu-20.04 | |
needs: stew | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Publish to pypi | |
uses: ./.github/workflows/actions/publish-to-pypi | |
with: | |
project-name: ${{ github.workflow }} | |
pypi-token: ${{ secrets.PYPI_TOKEN_COVEO_ARNPARSE }} | |
pre-release: ${{ github.ref != 'refs/heads/main' }} | |
dry-run: ${{ github.ref != 'refs/heads/main' && github.event.inputs.publish != 'true' }} |