Skip to content

Commit

Permalink
Use github actions workflow (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored May 25, 2020
1 parent 2906480 commit 12233f5
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 49 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Ubuntu CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8"]

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

- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Install latest versions of pip, setuptools and wheel
run: python -m pip install -U pip setuptools wheel

- name: Install shadems
run: pip install -e .[testing]

- name: Run testsuite
run: py.test shade_ms/

# deploy:
# needs: [test]
# runs-on: ubuntu-latest
# # Run on a push to a tag or master
# if: >
# github.event_name == 'push' &&
# (startsWith(github.event.ref, 'refs/tags') ||
# github.event.ref == 'refs/heads/master')

# steps:
# - name: Set up Python 3.8
# uses: actions/setup-python@v1
# with:
# python-version: 3.8

# - name: Install latest setuptools, wheel, pip
# run: python3 -m pip install -U pip setuptools wheel

# - name: Install dephell
# run: curl -L dephell.org/install | python3

# - name: Checkout source
# uses: actions/checkout@v2
# with:
# fetch-depth: 1

# - name: Build distributions
# run: python setup.py sdist bdist_wheel

# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.test_pypi_token }}
# repository_url: https://test.pypi.org/legacy/
# continue-on-error: true

# - name: Publish distribution 📦 to PyPI
# uses: pypa/gh-action-pypi-publish@master
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
# with:
# user: __token__
# password: ${{ secrets.pypi_token }}
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .travis/mypy.docker

This file was deleted.

7 changes: 0 additions & 7 deletions .travis/pep8.docker

This file was deleted.

10 changes: 0 additions & 10 deletions .travis/py3.docker

This file was deleted.

0 comments on commit 12233f5

Please sign in to comment.