Skip to content

Commit

Permalink
ci: fix upgrade requirements workflow (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer authored Aug 20, 2024
1 parent 49aa2ac commit a11d5fd
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/upgrade-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,26 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python 3.10
- name: Set up Python 3.10 and 3.12
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.10'
python-version: |
3.10
3.12
cache: pip
- run: |
python3.10 --version
python3.12 --version
- name: Install pre-requisites (e.g. hatch)
run: python -m pip install --require-hashes --requirement=requirements/ci
- name: Upgrade ci requirements
- name: Upgrade ci requirements (using Python 3.10 for compatibility)
run: |
rm requirements/ci
hatch env run --env ci -- python --version
- name: Upgrade docs requirements
HATCH_PYTHON=3.10 hatch env run --env ci -- python --version
- name: Upgrade docs requirements (using Python 3.12)
run: |
rm requirements/docs
hatch env run --env docs -- python --version
HATCH_PYTHON=3.12 hatch env run --env docs -- python --version
# Ref: https://github.com/peter-evans/create-pull-request
- uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
Expand Down

0 comments on commit a11d5fd

Please sign in to comment.