Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1de7b3

Browse files
committed
Add build file for sdist
1 parent 3abbf61 commit e1de7b3

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/cibuildsdist.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build CI sdist
2+
3+
on:
4+
# Save CI by only running this on release branches or tags.
5+
push:
6+
branches:
7+
- main
8+
- v[0-9]+.[0-9]+.x
9+
tags:
10+
- v*
11+
# Also allow running this action on PRs if requested by applying the
12+
# "Run cibuildsdist" label.
13+
pull_request:
14+
types:
15+
- opened
16+
- synchronize
17+
- reopened
18+
- labeled
19+
20+
jobs:
21+
build_sdist:
22+
if: |
23+
github.event_name == 'push' ||
24+
github.event_name == 'pull_request'
25+
# && (
26+
# (
27+
# github.event.action == 'labeled' &&
28+
# github.event.label.name == 'Run cibuildsdist'
29+
# ) ||
30+
# contains(github.event.pull_request.labels.*.name, 'Run cibuildsdist')
31+
#)
32+
name: Build sdist on ${{ matrix.os }}
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
matrix:
36+
os: [ubuntu-20.04]
37+
python-version: ['3.11.0-alpha - 3.11']
38+
39+
steps:
40+
- uses: actions/checkout@v3
41+
with:
42+
fetch-depth: 0
43+
44+
- uses: actions/setup-python@v4
45+
name: Install Python
46+
with:
47+
python-version: ${{ matrix.python-version }}
48+
49+
- run: python setup.py sdist
50+
- run: pip install dist/matplotlib*
51+
- run: echo "import matplotlib; print(matplotlib.__version__)" | python

0 commit comments

Comments
 (0)