Skip to content

Commit

Permalink
Merge pull request #79 from DreamLab/feature/github_actions
Browse files Browse the repository at this point in the history
switch from travis to github actions
  • Loading branch information
rjastrzebski authored May 17, 2021
2 parents fd7b35d + 05ff457 commit 9073878
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 35 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
21 changes: 21 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6, 3.7]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e python3-cover,report
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

0 comments on commit 9073878

Please sign in to comment.