Skip to content

Commit

Permalink
[ci] Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jul 10, 2021
1 parent 71ea421 commit b8dd3c7
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 17 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deloy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Upload PyPi Package

on:
push:
branches:
- develop
- develop-**

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: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python tests

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]

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 requirements.txt
- name: Run Tests
run: |
make test
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit b8dd3c7

Please sign in to comment.