Skip to content

Commit

Permalink
Create build-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zcqian committed Aug 3, 2021
1 parent a89cd5e commit 54496a4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on:
push: {}
pull_request:
branches:
- master

jobs:
build_package_and_run_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ 2.7, 3.6, 3.7, 3.8, 3.9 ]
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install wheel
run: pip install wheel
- name: Build Package
run: python setup.py sdist bdist_wheel

0 comments on commit 54496a4

Please sign in to comment.