update github actions

This commit is contained in:
long2ice 2020-06-02 18:20:55 +08:00
parent ec1c80f3a9
commit b4366d2427
2 changed files with 11 additions and 13 deletions

View File

@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- name: Install poetry
uses: abatilo/actions-poetry@v1.5.0
with:
python-version: '3.x'
python_version: 3.8.0
args: install
- name: Build dists
run: |
python3 setup.py sdist
make build
- name: Pypi Publish
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
run: |
make publish

View File

@ -16,13 +16,11 @@ jobs:
- name: Start MySQL
run: sudo systemctl start mysql.service
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install poetry
uses: abatilo/actions-poetry@v1.5.0
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
python_version: 3.8.0
args: install
- name: CI
env:
MYSQL_PASS: root