Skip to content

Commit f1ed0eb

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into union-enumerate-inf
2 parents 1f56b6d + 665a3fa commit f1ed0eb

File tree

498 files changed

+8873
-5031
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

498 files changed

+8873
-5031
lines changed

.ci/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.ci/head-tail.sh

Lines changed: 0 additions & 48 deletions
This file was deleted.

.ci/pull-gitlab.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

.ci/push-dockerhub.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

.ci/push-gitlab.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.ci/test-cli.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

.ci/test-dev.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

.ci/test-jupyter.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/sync_labels.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from json import loads
2323
from enum import Enum
2424
from datetime import datetime, timedelta
25+
import subprocess
2526
from subprocess import check_output, CalledProcessError
2627

2728
datetime_format = '%Y-%m-%dT%H:%M:%SZ'
@@ -631,14 +632,16 @@ def gh_cmd(self, cmd, arg, option):
631632
issue = 'issue'
632633
if self._pr:
633634
issue = 'pr'
635+
# workaround for gh bug https://github.com/cli/cli/issues/11055, it cannot deduce repo from url automatically
636+
repo = '/'.join(self._url.split('/')[:5])
634637
if arg:
635-
cmd_str = 'gh %s %s %s %s "%s"' % (issue, cmd, self._url, option, arg)
638+
cmd_str = 'gh --repo %s %s %s %s %s "%s"' % (repo, issue, cmd, self._url, option, arg)
636639
else:
637-
cmd_str = 'gh %s %s %s %s' % (issue, cmd, self._url, option)
640+
cmd_str = 'gh --repo %s %s %s %s %s' % (repo, issue, cmd, self._url, option)
638641
debug('Execute command: %s' % cmd_str)
639642
ex_code = os.system(cmd_str)
640643
if ex_code:
641-
warning('Execution of %s failed with exit code: %s' % (cmd_str, ex_code))
644+
raise RuntimeError('Execution of %s failed with exit code: %s' % (cmd_str, ex_code))
642645

643646
def edit(self, arg, option):
644647
r"""

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
# This step needs to happen after the commit sha is put in DOCKER_TAG
122122
# so that multi-stage builds can work correctly.
123123
run: |
124-
.ci/merge-fixes.sh
124+
.github/workflows/merge-fixes.sh
125125
env:
126126
GH_TOKEN: ${{ github.token }}
127127

@@ -178,13 +178,13 @@ jobs:
178178
cd /sage
179179
./sage -python -m pip install coverage
180180
./sage -python -m coverage run --rcfile=src/tox.ini src/bin/sage-runtests --force-lib --long -p4 --format github --random-seed=286735480429121101562228604801325644303 ${{ matrix.tests }}
181-
shell: sh .ci/docker-exec-script.sh BUILD . {0}
181+
shell: sh .github/workflows/docker-exec-script.sh BUILD . {0}
182182

183183
- name: Combine coverage results
184184
if: (success() || failure()) && steps.container.outcome == 'success'
185185
run: |
186186
./sage -python -m coverage combine --rcfile=src/tox.ini
187-
shell: sh .ci/docker-exec-script.sh BUILD /sage {0}
187+
shell: sh .github/workflows/docker-exec-script.sh BUILD /sage {0}
188188

189189
- name: Prepare upload
190190
id: copy-coverage
@@ -241,7 +241,7 @@ jobs:
241241
# This step needs to happen after the commit sha is put in DOCKER_TAG
242242
# so that multi-stage builds can work correctly.
243243
run: |
244-
.ci/merge-fixes.sh
244+
.github/workflows/merge-fixes.sh
245245
env:
246246
GH_TOKEN: ${{ github.token }}
247247

@@ -306,7 +306,7 @@ jobs:
306306
./sage -python -m coverage xml --rcfile=src/tox.ini --omit="/tmp/*"
307307
mkdir -p .coverage/coverage-report
308308
mv coverage.xml .coverage/coverage-report/
309-
shell: sh .ci/docker-exec-script.sh BUILD . {0}
309+
shell: sh .github/workflows/docker-exec-script.sh BUILD . {0}
310310

311311
- name: Upload coverage to codecov
312312
if: (success() || failure()) && steps.container.outcome == 'success'

0 commit comments

Comments
 (0)