From 19e5d8e52ab02d80c3797b2e55cc551dce913ad4 Mon Sep 17 00:00:00 2001 From: Konstantin Malanchev Date: Mon, 14 Oct 2024 09:43:59 -0400 Subject: [PATCH 1/2] Use actions/setup-python Recent ubuntu-latest update to 24.04 requires us to use non-system pip, so we use setup-python action --- .github/workflows/python-linux.yaml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/python-linux.yaml b/.github/workflows/python-linux.yaml index c4c9788..8c2a79b 100644 --- a/.github/workflows/python-linux.yaml +++ b/.github/workflows/python-linux.yaml @@ -35,6 +35,10 @@ jobs: with: platforms: all - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -52,6 +56,10 @@ jobs: platform: [ "manylinux", "musllinux" ] steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -77,6 +85,10 @@ jobs: with: platforms: all - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -94,6 +106,10 @@ jobs: platform: [ "manylinux", "musllinux" ] steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -115,6 +131,10 @@ jobs: with: platforms: all - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -132,6 +152,10 @@ jobs: platform: [ "manylinux" ] steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -158,6 +182,10 @@ jobs: with: platforms: all - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -175,6 +203,10 @@ jobs: platform: [ "manylinux", "musllinux" ] steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps From 20bda44271178d5391e276d0cf12fb859cdbdcbb Mon Sep 17 00:00:00 2001 From: Konstantin Malanchev Date: Mon, 14 Oct 2024 09:46:19 -0400 Subject: [PATCH 2/2] Update python-linux.yaml Fix syntax --- .github/workflows/python-linux.yaml | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/python-linux.yaml b/.github/workflows/python-linux.yaml index 8c2a79b..d8fe776 100644 --- a/.github/workflows/python-linux.yaml +++ b/.github/workflows/python-linux.yaml @@ -36,9 +36,9 @@ jobs: platforms: all - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -57,9 +57,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -86,9 +86,9 @@ jobs: platforms: all - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -107,9 +107,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -132,9 +132,9 @@ jobs: platforms: all - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -153,9 +153,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -183,9 +183,9 @@ jobs: platforms: all - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps @@ -204,9 +204,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' + with: + python-version: '3.x' + cache: 'pip' - name: Login to registry run: docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io - name: Install deps