This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
64 lines (54 loc) · 1.64 KB
/
ci-install-pkg.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
name: Install pkg
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches: [ master ]
pull_request: { }
jobs:
pkg-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependenies
run: |
pip install --upgrade cython "setuptools>=42" wheel check-manifest "twine==3.2"
- name: Check package
run: |
check-manifest
python setup.py check --metadata --strict
#- name: Fake install
# run: |
# python setup.py install --dry-run --user
- name: Create package
run: |
python setup.py sdist bdist_wheel
- name: Verify package
run: |
twine check dist/*
python setup.py clean
pkg-install:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-10.15, windows-2019]
python-version: [3.8]
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Create package
run: |
pip install cython setuptools wheel
python setup.py sdist bdist_wheel
- name: Install package
working-directory: ./dist
run: |
pip install $(python -c "import glob ; pkg = glob.glob('*.whl')[0] ; print(pkg)")
python -c "import imsegm ; print(imsegm.__version__)"