Skip to content

Commit b4ec7d7

Browse files
committed
Parallelize devstats download
1 parent 9a1d653 commit b4ec7d7

File tree

1 file changed

+79
-5
lines changed

1 file changed

+79
-5
lines changed

.github/workflows/release.yaml

Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,101 @@ permissions:
99
contents: write # to make release
1010

1111
jobs:
12-
devstats-release:
12+
download-1:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: scientific-python/devstats-query-action@main
1616
with:
1717
repos: |
1818
- numpy/numpy
19+
token: ${{ secrets.GRAPHQL_TOKEN }}
20+
artifact-name: devstats-scientific-python-1
21+
timezone: US/Pacific
22+
23+
download-2:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: scientific-python/devstats-query-action@main
27+
with:
28+
repos: |
1929
- scipy/scipy
20-
- matplotlib/matplotlib
30+
token: ${{ secrets.GRAPHQL_TOKEN }}
31+
artifact-name: devstats-scientific-python-2
32+
timezone: US/Pacific
33+
34+
download-3:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: scientific-python/devstats-query-action@main
38+
with:
39+
repos: |
2140
- pandas-dev/pandas
41+
token: ${{ secrets.GRAPHQL_TOKEN }}
42+
artifact-name: devstats-scientific-python-3
43+
timezone: US/Pacific
44+
45+
download-4:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: scientific-python/devstats-query-action@main
49+
with:
50+
repos: |
2251
- scikit-learn/scikit-learn
52+
token: ${{ secrets.GRAPHQL_TOKEN }}
53+
artifact-name: devstats-scientific-python-4
54+
timezone: US/Pacific
55+
56+
download-5:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: scientific-python/devstats-query-action@main
60+
with:
61+
repos: |
62+
- matplotlib/matplotlib
63+
token: ${{ secrets.GRAPHQL_TOKEN }}
64+
artifact-name: devstats-scientific-python-5
65+
timezone: US/Pacific
66+
67+
download-6:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: scientific-python/devstats-query-action@main
71+
with:
72+
repos: |
2373
- scikit-image/scikit-image
2474
- networkx/networkx
75+
token: ${{ secrets.GRAPHQL_TOKEN }}
76+
artifact-name: devstats-scientific-python-6
77+
timezone: US/Pacific
78+
79+
download-7:
80+
runs-on: ubuntu-latest
81+
steps:
82+
- uses: scientific-python/devstats-query-action@main
83+
with:
84+
repos: |
2585
- astropy/astropy
2686
- sunpy/sunpy
2787
token: ${{ secrets.GRAPHQL_TOKEN }}
28-
artifact-name: devstats-scientific-python
88+
artifact-name: devstats-scientific-python-7
89+
timezone: US/Pacific
2990

91+
release:
92+
needs:
93+
- download-1
94+
- download-2
95+
- download-3
96+
- download-4
97+
- download-5
98+
- download-6
99+
- download-7
100+
runs-on: ubuntu-latest
101+
steps:
30102
- uses: actions/download-artifact@v4
31103
with:
32-
name: devstats-scientific-python
104+
pattern: devstats-scientific-python-*
105+
merge-multiple: true
106+
path: .
33107

34108
- name: Set variables
35109
shell: bash
@@ -59,7 +133,7 @@ jobs:
59133
- name: Bundle queries
60134
shell: bash
61135
run: |
62-
tar cfJ $QUERY_FILENAME --strip-components=3 devstats/devstats/queries/*
136+
tar cfJ $QUERY_FILENAME -C ./devstats/devstats/queries .
63137
64138
- name: Release
65139
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)