Skip to content

Commit

Permalink
Merge pull request #7 from avdata99/4_kill_travis
Browse files Browse the repository at this point in the history
Implementar github actions
  • Loading branch information
avdata99 authored Dec 28, 2020
2 parents cce3ac6 + ae938ab commit bce2f6b
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 309 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload to Pypi

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.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install setuptools wheel twine
- name: Test with pytest
run: pytest -s
- 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/*
30 changes: 30 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint and test

on: [push, pull_request]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev-requirements.txt
python setup.py develop
- name: Lint
run: |
flake8 whoare --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 whoare --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test
run: pytest -s

28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit bce2f6b

Please sign in to comment.