1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

Add Github Actions workflows

This commit is contained in:
Steffo 2020-08-01 03:09:23 +02:00
parent fa1d6d7d15
commit 69ca67e5fa
2 changed files with 40 additions and 0 deletions

20
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Syntax check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Check all .py files
run: python -m compileall royalnet

20
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Publish to PyPI
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Build and publish the package
uses: abatilo/actions-poetry@v1.5.0
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
with:
python_version: 3.8
poetry_version: 1.0
args: publish --build