Skip to content

Commit

Permalink
use stew's action
Browse files Browse the repository at this point in the history
normalize the 'on:' conditions
  • Loading branch information
jonapich committed Oct 27, 2023
1 parent 5d4bfb0 commit dab1b5a
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 86 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/actions/stew-ci/action.yml

This file was deleted.

16 changes: 10 additions & 6 deletions .github/workflows/coveo-arnparse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/coveo-example-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-functools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-functools/**'
- '.github/workflows/coveo-functools.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-itertools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-itertools/**'
- '.github/workflows/coveo-itertools.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-pypi-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-pypi-cli/**'
- '.github/workflows/coveo-pypi-cli.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-settings/**'
- '.github/workflows/coveo-settings.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-styles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-styles/**'
- '.github/workflows/coveo-styles.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-systools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-systools/**'
- '.github/workflows/coveo-systools.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-testing-extras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-testing-extras/**'
- '.github/workflows/coveo-testing-extras.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coveo-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
types: [opened, synchronize, reopened]
paths:
- 'coveo-testing/**'
- '.github/workflows/coveo-testing.yml'

workflow_dispatch:
inputs:
Expand All @@ -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
Expand Down

0 comments on commit dab1b5a

Please sign in to comment.