Skip to content

Commit

Permalink
remove travis, add gh action support
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed May 13, 2021
1 parent 4e3f2fa commit 7868399
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy
on:
push:
tags:
- '*'
jobs:
deploy-to-pypi:
name: Deploy to pypi
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: usc_isi_i2_admin
TWINE_PASSWORD: ${{ secrets.PYPI }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests
on: push
jobs:
run-tests:
name: Run pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .
pip install coverage coveralls
- name: Test with pytest
run: |
python -m pytest -v --color=yes --cov rltk rltk/tests/test_*
- name: Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github

0 comments on commit 7868399

Please sign in to comment.