Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/bulk_repo_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:
required: true
default: '3.12'
options:
- '3.8'
- '3.12'
packages:
description: "Space separated list of required packages"
Expand Down Expand Up @@ -97,7 +96,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ github.event.inputs.python_version }}

- name: Setup Nodejs
uses: actions/setup-node@v4
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/merge-python-requirements-upgrade-prs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# This file contains a workflow which will be run on schedule every day,
# This file contains a workflow which will be run on schedule every day,
# or can be call from other workflows and
# will collect all the eligible (PRs which are labelled "Ready to merge" by our
# will collect all the eligible (PRs which are labelled "Ready to merge" by our
# script) python upgrade PRs from openedx or edx org.
# After fetching all PRs, it will check if all the checks passing on the PR, if yes
# then it will merge that PR, otherwise it will fail.
# Note:
# When workflow triggered from this repo(under openedx) will merge only openedx PRs
# When workflow triggered from this repo(under openedx) will merge only openedx PRs
# and will merge edx orgs' PRs only when it will be called from the edx/.github repo

name: Merge Python Requirements Upgrade PRs

on:
workflow_call:
secrets:
REQUIREMENTS_BOT_GITHUB_TOKEN:
REQUIREMENTS_BOT_GITHUB_TOKEN:
description: "Github token with read/write access used to merge PRs"
required: true
inputs:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.11'

- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -59,7 +59,7 @@ jobs:
id: generate_urls
run: |
echo "urls=$(python scripts/get_ready_to_merge_prs.py ${{ inputs.ORG_NAME || 'openedx' }})" >> $GITHUB_OUTPUT


merge_pr:
runs-on: ubuntu-20.04
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.11'

- name: Checkout tools repo
uses: actions/checkout@v4
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/repo-health-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Repo Health Checks
on:
workflow_call:
secrets:
REPO_HEALTH_BOT_TOKEN:
REPO_HEALTH_BOT_TOKEN:
description: "Github token with read access to all repos and write access to the target repo"
required: true
REPO_HEALTH_BOT_EMAIL:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.11"]

steps:
- name: Checkout Repo
Expand All @@ -70,14 +70,14 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Clone edx-repo-health repo
uses: actions/checkout@v4
with:
repository: openedx/edx-repo-health
path: edx-repo-health
ref: ${{ inputs.EDX_REPO_HEALTH_BRANCH }}

- name: Install pip & pip-tools
run: |
python3 -m pip install -r edx-repo-health/requirements/pip.txt
Expand All @@ -89,14 +89,14 @@ jobs:
repository: openedx/testeng-ci
path: testeng-ci
ref: "master"

- name: Clone repo-tools repo
uses: actions/checkout@v4
with:
repository: openedx/repo-tools
path: repo_tools
ref: master

- name: Clone repo-health-data repo
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
if: ${{ inputs.DASHBOARD_NAME == 'repo_health' }}
run: |
bash edx-repo-health/scripts/repo-health-artifact.sh

- name: Upload sqlite db as artifact
if: ${{ inputs.DASHBOARD_NAME == 'repo_health' }}
uses: actions/upload-artifact@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/upgrade-python-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ on:
default: false
type: boolean
python_version:
description: "The version of python to use for running this job. Defaults to python3.8"
description: "The version of python to use for running this job. Defaults to python3.11"
required: false
default: "3.8"
default: "3.11"
type: string
secrets:
requirements_bot_github_token:
Expand All @@ -45,7 +45,7 @@ on:

jobs:
upgrade_requirements:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: setup target branch
Expand All @@ -62,8 +62,8 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
# With the updated package lxml>5.0, now the system dev packages are necessary
# to run pip-compile. Without installing dev packages libxml2-dev and libxslt-dev,
# With the updated package lxml>5.0, now the system dev packages are necessary
# to run pip-compile. Without installing dev packages libxml2-dev and libxslt-dev,
# the requirements upgrade job fails
- name: setup dev for lxml dependency
run: |
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11

- name: Install pip
run: pip install -r requirements/pip.txt
Expand Down