Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
migrate to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
romnn committed Feb 2, 2021
1 parent 4201b53 commit 30f16f4
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 38 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release

on:
push:
tags:
- '*'

jobs:
publish-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- id: query
uses: romnnn/query-git-action@master

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: pip install tox wheel
- name: Test
run: tox
- uses: codecov/codecov-action@v1
10 changes: 0 additions & 10 deletions .readthedocs.yml

This file was deleted.

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

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"

0 comments on commit 30f16f4

Please sign in to comment.