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