Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit bdbb479

Browse files
committed
Merge branch 'develop' into t/33950/free-resolution
2 parents 0232e9e + cd1e2b1 commit bdbb479

File tree

1,245 files changed

+16736
-12829
lines changed

Some content is hidden

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

1,245 files changed

+16736
-12829
lines changed

.github/workflows/build.yml

+44-13
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ on:
44
push:
55
workflow_dispatch:
66
# Allow to run manually
7+
inputs:
8+
platform:
9+
description: 'Platform'
10+
required: true
11+
default: 'ubuntu-focal-standard'
12+
docker_tag:
13+
description: 'Docker tag'
14+
required: true
15+
default: 'dev'
716

817
concurrency:
918
# Cancel previous runs of this workflow for the same branch
@@ -13,34 +22,55 @@ concurrency:
1322
jobs:
1423
build:
1524
runs-on: ubuntu-latest
16-
container: ghcr.io/sagemath/sage/sage-docker-ubuntu-focal-standard-with-targets:dev
25+
container: ghcr.io/sagemath/sage/sage-docker-${{ github.event.inputs.platform || 'ubuntu-focal-standard' }}-with-targets:${{ github.event.inputs.docker_tag || 'dev'}}
1726
steps:
1827
- name: Checkout
28+
id: checkout
1929
uses: actions/checkout@v2
2030

31+
- name: Prepare
32+
id: prepare
33+
run: |
34+
# Install test tools.
35+
if apt-get update && apt-get install -y git python3-venv; then
36+
# Debian-specific temporary code:
37+
# Installation of python3-venv can be removed as soon as a
38+
# base image with a release including #33822 is available
39+
:
40+
else
41+
export PATH="build/bin:$PATH"
42+
eval $(sage-print-system-package-command auto update)
43+
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git)
44+
fi
45+
# Reuse built SAGE_LOCAL contained in the Docker image
46+
./bootstrap
47+
./configure --enable-build-as-root --prefix=/sage/local --with-sage-venv --enable-editable --enable-download-from-upstream-url
48+
49+
- name: Build and test modularized distributions
50+
if: always() && steps.prepare.outcome == 'success'
51+
run: make V=0 tox && make pypi-wheels
52+
env:
53+
MAKE: make -j2
54+
SAGE_NUM_THREADS: 2
55+
2156
- name: Set up node to install pyright
57+
if: always() && steps.prepare.outcome == 'success'
2258
uses: actions/setup-node@v1
2359
with:
2460
node-version: '12'
2561

2662
- name: Install pyright
63+
if: always() && steps.prepare.outcome == 'success'
2764
# Fix to v232 due to bug https://github.com/microsoft/pyright/issues/3239
2865
run: npm install -g [email protected]
2966

30-
- name: Prepare
31-
run: |
32-
# Install test tools.
33-
# Installation of python3-venv can be removed as soon as a
34-
# base image with a release including #33822 is available
35-
apt-get install -y git python3-venv
36-
# Reuse built SAGE_LOCAL contained in the Docker image
37-
./bootstrap
38-
./configure --enable-build-as-root --prefix=/sage/local --with-sage-venv --enable-editable --enable-download-from-upstream-url
39-
4067
- name: Static code check with pyright
68+
if: always() && steps.prepare.outcome == 'success'
4169
run: pyright
4270

4371
- name: Build
72+
id: build
73+
if: always() && steps.prepare.outcome == 'success'
4474
run: make build
4575
env:
4676
MAKE: make -j2
@@ -57,20 +87,21 @@ jobs:
5787
COLUMNS: 120
5888

5989
- name: Test
90+
if: always() && steps.build.outcome == 'success'
6091
run: |
6192
../sage -python -m pip install coverage
6293
../sage -python -m coverage run ./bin/sage-runtests --all -p2
6394
working-directory: ./src
6495

6596
- name: Prepare coverage results
66-
if: always()
97+
if: always() && steps.build.outcome == 'success'
6798
run: |
6899
./venv/bin/python3 -m coverage combine src/.coverage/
69100
./venv/bin/python3 -m coverage xml
70101
find . -name *coverage*
71102
72103
- name: Upload coverage to codecov
73-
if: always()
104+
if: always() && steps.build.outcome == 'success'
74105
uses: codecov/codecov-action@v2
75106
with:
76107
files: ./coverage.xml

0 commit comments

Comments
 (0)