adding gh actions

pull/19/head
deadc0de6 3 years ago
parent ee1e3de79e
commit d019a2717c

@ -0,0 +1,27 @@
name: Release to PyPI
on:
release:
types: [created]
jobs:
pypi_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Tools
run: |
sudo apt update
sudo apt -y install python3-pypandoc pandoc
python -m pip install --upgrade pip
pip install setuptools wheel twine pypandoc
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build and Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

@ -0,0 +1,22 @@
name: tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.4, 3.5, 3.6, 3.7, 3.8]
steps:
- 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 tests-requirements.txt
pip install -r requirements.txt
- name: Run tests
run: |
./tests.sh

@ -1,13 +0,0 @@
language: python
python:
- "3.4"
- "3.5"
- "3.6"
install:
- "pip install pip --upgrade"
- "pip install -r tests-requirements.txt"
- "pip install -r requirements.txt"
script:
./tests.sh
after_success:
coveralls
Loading…
Cancel
Save