From 065b6fb7f8057799549acf0b3d5acbf230f2e8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Wed, 6 Dec 2023 10:17:55 +0100 Subject: [PATCH] ci: replaced `python_version` matrix var with `python-version-file: pyproject.toml` --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 845f74d..ab459a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,22 +8,22 @@ 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-22.04", "windows-latest", "macOS-latest"] - python_version: [3.9] node_version: [16] steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python_version }} + python-version-file: pyproject.toml + cache: 'poetry' - name: Setup Node.js uses: actions/setup-node@v1 with: @@ -35,7 +35,7 @@ jobs: - name: Install dependencies shell: bash run: | - pip install poetry + pipx install poetry source venv/bin/activate || source venv/Scripts/activate poetry install - name: Build visualization @@ -60,5 +60,5 @@ jobs: - name: Upload package uses: actions/upload-artifact@v2 with: - name: aw-watcher-input-${{ runner.os }}-py${{ matrix.python_version }} + name: aw-watcher-input-${{ runner.os }} path: dist/aw-watcher-input