From 4c4d4e00680efcccbb156d671accd57320b6bd8f Mon Sep 17 00:00:00 2001 From: chyalexcheng Date: Fri, 31 Jan 2025 17:22:34 +0100 Subject: [PATCH 1/4] update build --- .github/workflows/build.yml | 45 +++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b82f5e..27bdbcb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,16 +1,13 @@ -# This workflow will install Python dependencies and run tests - name: Python package on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: - name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}) runs-on: ${{ matrix.os }} strategy: @@ -20,23 +17,21 @@ jobs: python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - - uses: actions/cache@v3 - with: - path: ${{ env.pythonLocation }} - key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }} - - - name: Install dependencies - run: | - python -m pip install poetry - poetry lock --no-update - poetry install -E dev -E rnn -E visuals - - name: Verify that we can build the package - run: poetry build - - name: Test with pytest - run: poetry run pytest + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} + - name: Install dependencies + run: | + python -m pip install poetry + poetry lock --no-update + poetry install -E dev -E rnn -E visuals + - name: Verify that we can build the package + run: poetry build + - name: Test with pytest + run: poetry run pytest From e391e3a5ec40a21a04dfd7616c463926d2bc468a Mon Sep 17 00:00:00 2001 From: chyalexcheng Date: Fri, 31 Jan 2025 17:24:47 +0100 Subject: [PATCH 2/4] update build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27bdbcb..2f130da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: - name: Install dependencies run: | python -m pip install poetry - poetry lock --no-update + poetry lock poetry install -E dev -E rnn -E visuals - name: Verify that we can build the package run: poetry build From a47e58cebc40dc98e4b10c737c378d484f4ff034 Mon Sep 17 00:00:00 2001 From: chyalexcheng Date: Fri, 31 Jan 2025 19:03:13 +0100 Subject: [PATCH 3/4] update build --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f130da..f8bf45f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,7 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} - name: Install dependencies run: | + python -m pip install --upgrade pip python -m pip install poetry poetry lock poetry install -E dev -E rnn -E visuals From 0b97fa09ab479b1c23424c88bd198b84fef2df80 Mon Sep 17 00:00:00 2001 From: chyalexcheng Date: Fri, 31 Jan 2025 19:53:14 +0100 Subject: [PATCH 4/4] lock to poetry version 1.8.4 --- .github/workflows/build.yml | 46 ++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8bf45f..54dcf58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,13 +1,16 @@ +# This workflow will install Python dependencies and run tests + name: Python package on: push: - branches: ["main"] + branches: [ "main" ] pull_request: - branches: ["main"] + branches: [ "main" ] jobs: build: + name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}) runs-on: ${{ matrix.os }} strategy: @@ -17,22 +20,23 @@ jobs: python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install poetry - poetry lock - poetry install -E dev -E rnn -E visuals - - name: Verify that we can build the package - run: poetry build - - name: Test with pytest - run: poetry run pytest + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - uses: actions/cache@v3 + with: + path: ${{ env.pythonLocation }} + key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }} + + - name: Install dependencies + run: | + python -m pip install poetry==1.8.4 + poetry lock --no-update + poetry install -E dev -E rnn -E visuals + - name: Verify that we can build the package + run: poetry build + - name: Test with pytest + run: poetry run pytest