Skip to content

Commit

Permalink
Add pypi upload action, update CI python versions
Browse files Browse the repository at this point in the history
Summary:
Setup action so we can release from github.
Also include 3.9 in the CI

also delete the travis-ci config

Reviewed By: cooperlees

Differential Revision: D24597938

fbshipit-source-id: 09cbacf148cf1fadf1916478735e05e3f903f31c
  • Loading branch information
fried authored and facebook-github-bot committed Oct 28, 2020
1 parent d420aba commit 993f73f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: [3.7, 3.8, 3.9]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

0 comments on commit 993f73f

Please sign in to comment.