Release #3651
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |