Skip to content

Commit b0b1dac

Browse files
committed
Add GitHub Actions workflow to run tests
Current Pillow only supports non-EOL Python versions, so stick to those for now. I tried running `python setup.py build_sphinx` also, but for some reason Sphinx isn't registering itself with setuptools. Update Python bump checklist accordingly. Switch to updating Git master first because we should test against the new Python release before shipping a wheel for it.
1 parent b59be96 commit b0b1dac

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# Adding wheels for a new Python release
22

3+
- Update Git master
4+
- [ ] `git checkout master`
5+
- [ ] Add classifier for new Python version to `setup.py`
6+
- [ ] Add new Python version to `.github/workflows/python.yml`
7+
- [ ] Commit and push
38
- [ ] Add two new build matrix groups to [openslide-python.yml](https://github.com/openslide/openslide-automation/blob/master/appveyor/openslide-python.yml) with appropriate PYTHON variables
49
- [ ] [Select the original OpenSlide Python release build](https://ci.appveyor.com/project/OpenSlide/openslide-python/history) in AppVeyor, then click "Rebuild Commit"
510
- [ ] In OpenSlide Python checkout, `git checkout v<version> && git clean -dxf && mkdir dist`
611
- [ ] Download wheels _from new build jobs only_ into `dist` directory
712
- [ ] `twine upload dist/*`
813
- [ ] Upload new wheels to [GitHub release](https://github.com/openslide/openslide-python/releases)
9-
- [ ] `git checkout master`, add classifier for new Python version to `setup.py`, commit and push
1014
- [ ] Update MacPorts package
1115
- [ ] Update website: Python 3 versions in `download/index.md`

‎.github/workflows/python.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Python
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
name: Tests
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.6, 3.7, 3.8, 3.9]
16+
steps:
17+
- name: Check out repo
18+
uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install OpenSlide
24+
run: sudo apt-get install libopenslide0
25+
- name: Run tests
26+
run: python setup.py test

0 commit comments

Comments
 (0)