From 6867bfb9cf155eccc7d76f8406a43cdb433d5fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Wed, 6 Dec 2023 10:12:21 +0100 Subject: [PATCH] ci: replaced `python_version` matrix var with `python-version-file: pyproject.toml` --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 359abf1..a2a1072 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,12 @@ on: jobs: build: - name: Test on ${{ matrix.os }} (py-${{ matrix.python_version }}) + name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-20.04, windows-latest, macOS-11] - python_version: [3.11] steps: - uses: actions/checkout@v2 with: @@ -22,7 +21,8 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python_version }} + python-version-file: pyproject.toml + cache: 'poetry' - name: Create virtualenv shell: bash run: | @@ -30,7 +30,7 @@ jobs: - name: Install dependencies shell: bash run: | - pip install poetry==1.3.2 # due to: https://github.com/python-poetry/poetry/issues/7611 + pipx install poetry==1.3.2 # due to: https://github.com/python-poetry/poetry/issues/7611 source venv/bin/activate || source venv/Scripts/activate poetry install - name: Run tests @@ -50,5 +50,5 @@ jobs: - name: Upload package uses: actions/upload-artifact@v2 with: - name: aw-notify-${{ runner.os }}-py${{ matrix.python_version }} + name: aw-notify-${{ runner.os }} path: dist/aw-notify