diff --git a/.github/workflows/upgrade-dependencies.yml b/.github/workflows/upgrade-dependencies.yml index f14e9f7f..5c9d6267 100644 --- a/.github/workflows/upgrade-dependencies.yml +++ b/.github/workflows/upgrade-dependencies.yml @@ -16,17 +16,17 @@ jobs: os: ['ubuntu-latest'] python-version: ["3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'pip' - name: Upgrade Python dependencies shell: bash run: | - python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools + python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools wheel cython setuptools python${{ matrix.python-version }} -m pip install `grep numpy== requirements/${{ matrix.os }}_py${{ matrix.python-version }}_extras.txt` python${{ matrix.python-version }} -m piptools compile -q --upgrade --resolver=backtracking -o requirements/${{ matrix.os }}_py${{ matrix.python-version }}.txt pyproject.toml python${{ matrix.python-version }} -m piptools compile -q --upgrade --resolver=backtracking --all-extras -o requirements/${{ matrix.os }}_py${{ matrix.python-version }}_extras.txt pyproject.toml @@ -43,7 +43,7 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com git add requirements - git commit -m "update dependencies for ${{ matrix.os }}/py${{ matrix.python-version }}" + git commit --allow-empty -m "update dependencies for ${{ matrix.os }}/py${{ matrix.python-version }}" git push -f origin ${{ github.ref_name }}:auto-dependency-upgrades-${{ matrix.os }}-py${{ matrix.python-version }} pull_request: @@ -54,10 +54,10 @@ jobs: matrix: python-version: ["3.9"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: detect auto-upgrade-dependency branches