From f888fd8c18ad9e7099383fdcadc45a778b09a30b Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:32:16 +0100 Subject: [PATCH] Switch to `build`, update more action versions --- .github/workflows/ci.yml | 4 ++-- .github/workflows/code_quality.yml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d46bcde..8682127 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,8 +71,8 @@ jobs: - name: Build sdist and wheel run: | - pip install pip setuptools wheel --upgrade - python setup.py sdist bdist_wheel + pip install build --upgrade + python -m build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index f9204e2..107cb27 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -7,6 +7,7 @@ on: - master - develop tags: + - '*' paths: - "**.py" pull_request: @@ -20,10 +21,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - toxenv: [isort, black, docs] + toxenv: [isort, black, flake8, docs] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: "3.11" - name: Install dependencies