forked from sympy/sympy
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (63 loc) · 2.14 KB
/
release.yml
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
76
77
78
79
# ------------------------------------------------------------------ #
# #
# SymPy CI script for Github Actions #
# #
# Run on the release branch and builds the release artifacts. #
# #
# ------------------------------------------------------------------ #
name: release
on:
push:
branches:
- '1.11'
pull_request:
branches:
- '1.11'
env:
release_branch: '1.11'
release_version: '1.11rc1'
previous_version: '1.10'
jobs:
# -------------------- Build artifacts --------------------------- #
build:
runs-on: ubuntu-20.04
steps:
# Check out with full git history for authors check:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build release files
run: release/ci_release_script.sh ${{ env.release_version }} ${{ env.previous_version }}
- name: Store release files
uses: actions/upload-artifact@v3
with:
name: release_files
path: release-${{ env.release_version }}
# -------------------- Test installation ------------------------- #
test-install:
needs: [build]
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.8']
name: Python ${{ matrix.python-version }} test install
steps:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Retrieve release files
uses: actions/download-artifact@v2
with:
name: release_files
- name: List files
run: ls -R
- name: Install wheel
run: pip install sympy-${{ env.release_version }}-py3-none-any.whl
- name: Run tests after install
run: python -c 'import sympy; sympy.test()'