update github actions

This commit is contained in:
long2ice 2020-06-02 18:58:59 +08:00
parent 5b9b51db3f
commit 7b4b7ac749
3 changed files with 9 additions and 19 deletions

View File

@ -6,19 +6,13 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: false
steps:
- uses: actions/checkout@v2
- name: Install poetry
uses: abatilo/actions-poetry@v1.5.0
env:
POETRY_VIRTUALENVS_CREATE: false
with:
python_version: 3.8.0
poetry_version: 1.0.5
args: install
- name: Build dists
run: |
make build
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
- name: Pypi Publish
run: |
make build
make publish

View File

@ -3,6 +3,8 @@ on: [push, pull_request]
jobs:
testall:
runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: false
services:
postgres:
image: postgres:latest
@ -17,13 +19,7 @@ jobs:
run: sudo systemctl start mysql.service
- uses: actions/checkout@v2
- name: Install poetry
uses: abatilo/actions-poetry@v1.5.0
env:
POETRY_VIRTUALENVS_CREATE: false
with:
python_version: 3.8.0
poetry_version: 1.0.5
args: install
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
- name: CI
env:
MYSQL_PASS: root

View File

@ -52,10 +52,10 @@ test_postgres:
testall: deps test_sqlite test_postgres test_mysql
build:
build: deps
@poetry build
publish:
publish: deps
@poetry publish
ci: