From b4366d2427b4e9066fd905bf95b92c509ebf66b1 Mon Sep 17 00:00:00 2001 From: long2ice Date: Tue, 2 Jun 2020 18:20:55 +0800 Subject: [PATCH] update github actions --- .github/workflows/pypi.yml | 14 +++++++------- .github/workflows/test.yml | 10 ++++------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 44f27d3..2bd6168 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -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 }} \ No newline at end of file + run: | + make publish \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37c5c98..ddfcddb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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