Skip to content

Commit

Permalink
disable travis, add initial github action configs
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed Dec 8, 2020
1 parent e62b23b commit 8c14cad
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflow/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy
on: tag
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/*
33 changes: 33 additions & 0 deletions .github/workflow/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests
on: push
jobs:
run-tests:
name: Run pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 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: |
py.test -v --color=yes --cov pyrallel
- name: Coverage
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS }}
run: |
coverage run --omit tests/** -m pytest tests
coverage report
coveralls
File renamed without changes.

0 comments on commit 8c14cad

Please sign in to comment.