Skip to content

Commit

Permalink
CI: use actions/setup-python (#1061)
Browse files Browse the repository at this point in the history
Also run tools-test.yml if modified
  • Loading branch information
fingolfin authored Dec 3, 2024
1 parent a206a41 commit 695de37
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/assemble-distro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ jobs:
restore-keys: |
archives-
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: "Install package distribution tools"
run: python -m pip install -r tools/requirements.txt

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
with:
fetch-depth: 0

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: "Install package distribution tools"
run: python -m pip install -r tools/requirements.txt

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/scan-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ jobs:
GAP_PKGS_TO_CLONE: 'crypting json'
GAP_PKGS_TO_BUILD: 'crypting json'

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: "Install prerequisites for package distribution tools"
run: python -m pip install -r tools/requirements.txt

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ jobs:
restore-keys: |
archives-
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: "Install package distribution tools"
run: python -m pip install -r tools/requirements.txt

Expand Down Expand Up @@ -249,6 +254,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: "Install package distribution tools"
run: python -m pip install -r tools/requirements.txt

Expand Down Expand Up @@ -351,6 +361,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: "Install package distribution tools"
run: python -m pip install -r tools/requirements.txt

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,26 @@ on:
push:
paths:
- 'tools/*'
- '.github/workflows/tools-test.yml' # modified workflow may affect tools
branches:
- main
pull_request:
paths:
- 'tools/*'
- '.github/workflows/tools-test.yml' # modified workflow may affect tools

jobs:
py39:
py311:
name: "Run tests"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install -r tools/requirements.txt
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update-latest-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
name: "Upload report"
runs-on: ubuntu-20.04
steps:
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.11"

- uses: actions/checkout@v4

- name: "Install package distribution tools"
Expand Down

0 comments on commit 695de37

Please sign in to comment.