diff --git a/.github/workflows/actions/stew-ci/action.yml b/.github/workflows/actions/stew-ci/action.yml deleted file mode 100644 index f5e5191..0000000 --- a/.github/workflows/actions/stew-ci/action.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: stew ci -description: Launch stew ci on a project - -inputs: - project-name: - description: The project name. - required: true - python-version: - description: The python version - required: true - - -runs: - using: 'composite' - - steps: - - uses: actions/setup-python@v4 - with: - python-version: ${{ inputs.python-version }} - - - name: Prepare pipx path - shell: bash - run: echo "$HOME/.local/bin" >> $GITHUB_PATH - - - name: Upgrade python tools and install pipx - shell: bash - run: python -m pip install --upgrade pip wheel setuptools pipx --user - - - name: poetry and stew - shell: bash - run: | - python -m pipx install "poetry<1.6" - python -m pipx install coveo-stew==3.0.16 - - - name: Ensure correct python version - shell: bash - working-directory: ${{ inputs.project-name }} - run: poetry env use python - - - name: Run stew ci - shell: bash - run: stew ci ${{ inputs.project-name }} --exact-match diff --git a/.github/workflows/coveo-arnparse.yml b/.github/workflows/coveo-arnparse.yml index 2efb8a7..4b8dbfd 100644 --- a/.github/workflows/coveo-arnparse.yml +++ b/.github/workflows/coveo-arnparse.yml @@ -6,13 +6,19 @@ on: - main paths: - 'coveo-arnparse/**' - - '.github/workflows/**' pull_request: types: [opened, synchronize, reopened] paths: - 'coveo-arnparse/**' - - '.github/workflows/**' + - '.github/workflows/coveo-arnparse.yml' + + workflow_dispatch: + inputs: + publish: + description: "Publish to pypi.org?" + required: false + default: 'false' jobs: stew: @@ -26,14 +32,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-example-library.yml b/.github/workflows/coveo-example-library.yml index cd65294..104f464 100644 --- a/.github/workflows/coveo-example-library.yml +++ b/.github/workflows/coveo-example-library.yml @@ -6,13 +6,19 @@ on: - main paths: - 'coveo-example-library/**' - - '.github/workflows/**' pull_request: types: [opened, synchronize, reopened] paths: - 'coveo-example-library/**' - - '.github/workflows/**' + - '.github/workflows/coveo-example-library.yml' + + workflow_dispatch: + inputs: + publish: + description: "Publish to pypi.org?" + required: false + default: 'false' jobs: pyprojectci: @@ -26,14 +32,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-functools.yml b/.github/workflows/coveo-functools.yml index 82a991a..5346eb0 100644 --- a/.github/workflows/coveo-functools.yml +++ b/.github/workflows/coveo-functools.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-functools/**' + - '.github/workflows/coveo-functools.yml' workflow_dispatch: inputs: @@ -31,14 +32,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-itertools.yml b/.github/workflows/coveo-itertools.yml index 8ce233a..0f4663f 100644 --- a/.github/workflows/coveo-itertools.yml +++ b/.github/workflows/coveo-itertools.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-itertools/**' + - '.github/workflows/coveo-itertools.yml' workflow_dispatch: inputs: @@ -32,14 +33,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-pypi-cli.yml b/.github/workflows/coveo-pypi-cli.yml index 8d5c533..226fe6a 100644 --- a/.github/workflows/coveo-pypi-cli.yml +++ b/.github/workflows/coveo-pypi-cli.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-pypi-cli/**' + - '.github/workflows/coveo-pypi-cli.yml' workflow_dispatch: inputs: @@ -32,14 +33,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-settings.yml b/.github/workflows/coveo-settings.yml index ec8144e..175577e 100644 --- a/.github/workflows/coveo-settings.yml +++ b/.github/workflows/coveo-settings.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-settings/**' + - '.github/workflows/coveo-settings.yml' workflow_dispatch: inputs: @@ -32,14 +33,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-styles.yml b/.github/workflows/coveo-styles.yml index adbd5eb..1b4e5ec 100644 --- a/.github/workflows/coveo-styles.yml +++ b/.github/workflows/coveo-styles.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-styles/**' + - '.github/workflows/coveo-styles.yml' workflow_dispatch: inputs: @@ -32,14 +33,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-systools.yml b/.github/workflows/coveo-systools.yml index 6e27da7..277543f 100644 --- a/.github/workflows/coveo-systools.yml +++ b/.github/workflows/coveo-systools.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-systools/**' + - '.github/workflows/coveo-systools.yml' workflow_dispatch: inputs: @@ -32,14 +33,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-testing-extras.yml b/.github/workflows/coveo-testing-extras.yml index 305d00f..0461d4a 100644 --- a/.github/workflows/coveo-testing-extras.yml +++ b/.github/workflows/coveo-testing-extras.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-testing-extras/**' + - '.github/workflows/coveo-testing-extras.yml' workflow_dispatch: inputs: @@ -32,14 +33,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org diff --git a/.github/workflows/coveo-testing.yml b/.github/workflows/coveo-testing.yml index b29d6af..9ed119c 100644 --- a/.github/workflows/coveo-testing.yml +++ b/.github/workflows/coveo-testing.yml @@ -11,6 +11,7 @@ on: types: [opened, synchronize, reopened] paths: - 'coveo-testing/**' + - '.github/workflows/coveo-testing.yml' workflow_dispatch: inputs: @@ -32,14 +33,12 @@ jobs: 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 + uses: coveo/stew@main with: project-name: ${{ github.workflow }} python-version: ${{ matrix.python-version }} + poetry-version: "<2" publish: name: Publish to pypi.org