-
Notifications
You must be signed in to change notification settings - Fork 155
52 lines (48 loc) · 1.68 KB
/
Copy pathdownstream.yml
File metadata and controls
52 lines (48 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Downstream checks run on pull requests to main when the head branch name
# contains "downstream", or any time via workflow_dispatch. For dispatch-only
# runs: Actions → downstream → Run workflow → pick a branch under "Use workflow from".
#
# The workflow must exist on the default branch for it to appear under the
# upstream repo's Actions tab; until the workflow is merged, use the fork's
# Actions (or dispatch from a branch that contains this file).
name: downstream
on:
workflow_dispatch:
pull_request:
branches:
- main
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
recipe:
name: downstream (${{ matrix.recipe }})
runs-on: ubuntu-latest
timeout-minutes: 120
if: >-
github.event_name == 'workflow_dispatch'
|| (github.event_name == 'pull_request' && contains(github.head_ref, 'downstream'))
strategy:
fail-fast: false
matrix:
recipe:
- conda
- datasette
- devpi
- hatch
- pytest
- python-lsp-server
- tox
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
allow-prereleases: true
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
- name: Run downstream recipe
run: uv run downstream/run_downstream.py "${{ matrix.recipe }}"