-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (35 loc) · 1.21 KB
/
build_package.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
name: Build sfaira Package
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python: [3.7, 3.8]
env:
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v2
name: Check out source-code repository
- name: Setup Python
uses: actions/setup-python@v2.1.4
with:
python-version: ${{ matrix.python }}
- name: Upgrade and install pip and wheel
run: python -m pip install --upgrade pip wheel
- name: Build sfaira
run: pip install .
- name: Import sfaira
run: python -c "import sfaira"
# Verify that the package adheres to PyPI's standards
- name: Install required twine packaging dependencies
run: pip install setuptools wheel twine
- name: Build twine package
run: python setup.py sdist bdist_wheel
- name: Check twine package
run: twine check dist/*