From 90263a9e9e8345bdc4481449ad7f52fb5d268940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sun, 9 Jun 2024 15:42:49 +0100 Subject: [PATCH] Use poetry in workflows --- .github/workflows/ci.yaml | 27 ++++++++++++++++--------- .github/workflows/integration_test.yaml | 4 ++-- poetry.lock | 17 +++++++++++++++- pyproject.toml | 1 + 4 files changed, 36 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0463c38f6..0a1cda3f1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,21 +20,24 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install Poetry + run: pipx install poetry + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + cache: poetry - name: Install base dependencies - run: | - python -m pip install --upgrade pip - python -m pip install tox sphinx + run: poetry install - name: Install optional dependencies if: matrix.platform != 'windows-latest' run: | sudo apt update - sudo apt install ffmpeg # For replaygain + sudo apt install ffmpeg + poetry install --extras replaygain - name: Test older Python versions with tox if: matrix.python-version != '3.x' @@ -65,15 +68,17 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install Poetry + run: pipx install poetry + - name: Set up Python 3.x uses: actions/setup-python@v2 with: python-version: "3.x" + cache: poetry - name: Install base dependencies - run: | - python -m pip install --upgrade pip - python -m pip install tox sphinx + run: poetry install - name: Add problem matcher run: echo "::add-matcher::.github/sphinx-problem-matcher.json" @@ -87,15 +92,17 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install Poetry + run: pipx install poetry + - name: Set up Python 3.x uses: actions/setup-python@v2 with: python-version: "3.x" + cache: poetry - name: Install base dependencies - run: | - python -m pip install --upgrade pip - python -m pip install tox sphinx + run: poetry install - name: Add problem matcher run: echo "::add-matcher::.github/flake8-problem-matcher.json" diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml index 633947fd3..93077e39f 100644 --- a/.github/workflows/integration_test.yaml +++ b/.github/workflows/integration_test.yaml @@ -20,8 +20,8 @@ jobs: - name: Install base dependencies run: | - python -m pip install --upgrade pip - python -m pip install tox sphinx + pip install poetry + poetry install - name: Test with tox run: | diff --git a/poetry.lock b/poetry.lock index 7e269d6f9..0703f9b42 100644 --- a/poetry.lock +++ b/poetry.lock @@ -366,6 +366,21 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "platform_system == \"Windows\""} +[[package]] +name = "codecov" +version = "2.1.13" +description = "Hosted coverage reports for GitHub, Bitbucket and Gitlab" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +files = [ + {file = "codecov-2.1.13-py2.py3-none-any.whl", hash = "sha256:c2ca5e51bba9ebb43644c43d0690148a55086f7f5e6fd36170858fa4206744d5"}, + {file = "codecov-2.1.13.tar.gz", hash = "sha256:2362b685633caeaf45b9951a9b76ce359cd3581dd515b430c6c3f5dfb4d92a8c"}, +] + +[package.dependencies] +coverage = "*" +requests = ">=2.7.9" + [[package]] name = "colorama" version = "0.4.4" @@ -2612,4 +2627,4 @@ web = ["flask", "flask-cors"] [metadata] lock-version = "2.0" python-versions = ">=3.8,<4" -content-hash = "0c088183c51e1a068292d1af7bfa82f9c8569d8481d5044906f690219a601212" +content-hash = "3c37973d479d97cb7cb4ca195fe15ede03577e4c91a88a939769aa7924ca2d3c" diff --git a/pyproject.toml b/pyproject.toml index 21411549d..1f8463b79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,6 +68,7 @@ soco = { version = "*", optional = true } [tool.poetry.group.test.dependencies] beautifulsoup4 = "*" +codecov = ">=2.1.13" flask = "*" mock = "*" pylast = "*"