Repository navigation
75 lines (62 loc) · 2.03 KB
/
Copy pathupstream.yml
File metadata and controls
75 lines (62 loc) · 2.03 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Upstream
on:
schedule:
- cron: "0 1 * * *"
push:
branches: [main]
tags: ["*"]
pull_request:
workflow_dispatch:
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: upstream-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
# Do not run the schedule job on forks
if: github.repository == 'dask/dask' || github.event_name != 'schedule'
name: ${{ matrix.environment }}
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
environment: [py315, nightly]
steps:
- name: Checkout source
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Reconfigure pytest-timeout
# No SIGALRM available on Windows
# Note: all changes to the source code must happen before `pixi install`
# or we'll build the package twice
if: ${{ matrix.os != 'windows-latest' }}
run: sed -i.bak 's/timeout_method = "thread"/timeout_method = "signal"/' pyproject.toml
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.84.2
run-install: false
cache: false
locked: false
- name: pixi update
run: pixi update -e ${{ matrix.environment }}
- name: pixi install
run: pixi install -e ${{ matrix.environment }}
- name: Run tests
id: run_tests
run: pixi run -e ${{ matrix.environment }} test-ci --report-log output-log.jsonl
- name: Open or update issue on failure
if: |
failure()
&& github.event_name != 'pull_request'
&& github.repository == 'dask/dask'
&& steps.run_tests.outcome == 'failure'
uses: scientific-python/[email protected]
with:
log-path: output-log.jsonl
issue-title: ⚠️ Upstream CI failed ⚠️
issue-label: upstream
- name: Coverage
uses: codecov/codecov-action@v7