update github actions
This commit is contained in:
parent
5b9b51db3f
commit
7b4b7ac749
14
.github/workflows/pypi.yml
vendored
14
.github/workflows/pypi.yml
vendored
@ -6,19 +6,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
POETRY_VIRTUALENVS_CREATE: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
uses: abatilo/actions-poetry@v1.5.0
|
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
|
||||||
env:
|
|
||||||
POETRY_VIRTUALENVS_CREATE: false
|
|
||||||
with:
|
|
||||||
python_version: 3.8.0
|
|
||||||
poetry_version: 1.0.5
|
|
||||||
args: install
|
|
||||||
- name: Build dists
|
|
||||||
run: |
|
|
||||||
make build
|
|
||||||
- name: Pypi Publish
|
- name: Pypi Publish
|
||||||
run: |
|
run: |
|
||||||
|
make build
|
||||||
make publish
|
make publish
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -3,6 +3,8 @@ on: [push, pull_request]
|
|||||||
jobs:
|
jobs:
|
||||||
testall:
|
testall:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
POETRY_VIRTUALENVS_CREATE: false
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
@ -17,13 +19,7 @@ jobs:
|
|||||||
run: sudo systemctl start mysql.service
|
run: sudo systemctl start mysql.service
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
uses: abatilo/actions-poetry@v1.5.0
|
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
|
||||||
env:
|
|
||||||
POETRY_VIRTUALENVS_CREATE: false
|
|
||||||
with:
|
|
||||||
python_version: 3.8.0
|
|
||||||
poetry_version: 1.0.5
|
|
||||||
args: install
|
|
||||||
- name: CI
|
- name: CI
|
||||||
env:
|
env:
|
||||||
MYSQL_PASS: root
|
MYSQL_PASS: root
|
||||||
|
Loading…
x
Reference in New Issue
Block a user