Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

Pin workflow runner and Python version to prevent drift from ubuntu-latest and improve build reproducibility.

Changes

  • .github/workflows/build-test.yml: Set runs-on: ubuntu-20.04 and python-version: '3.5.10'
  • .github/workflows/github-pages.yml: Set runs-on: ubuntu-20.04 and python-version: '3.5.10' for both build and deploy jobs

All other workflow configuration (pip cache, Portuguese step names, artifact handling) preserved.

Original prompt

Update the two GitHub Actions workflow files to ensure the jobs run on Ubuntu 20.04 and use Python 3.5. Specifically:

Files to update:

  • .github/workflows/build-test.yml
  • .github/workflows/github-pages.yml

Changes to make in both files:

  • Change runs-on: ubuntu-latest to runs-on: ubuntu-20.04
  • Change the actions/setup-python step to use python-version: '3.5.10' (explicit patch version) while keeping cache: pip
  • Preserve remaining steps and translations (Portuguese step names) as in the originals

Make a branch, commit the changes, and open a new pull request containing only these file updates. Provide a clear PR title and description describing the changes and why (ensuring GitHub Actions run on ubuntu-20.04 and use Python 3.5.10).

Do NOT modify other files.

Repository: pythonclub/pythonclub.github.io

Updated file contents should reflect the following YAML structure (use these as the new contents):

.github/workflows/build-test.yml:

name: Build Test

on:
push:
branches:
- '*'
- '!pelican'

permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout do repositório
uses: actions/checkout@v5
with:
submodules: recursive

  - name: Configura python
    uses: actions/setup-python@v6
    with:
      python-version: '3.5.10'
      cache: pip
  
  - name: Instala dependências
    run: pip install -r requirements.txt

  - name: Build do site
    run: make publish

.github/workflows/github-pages.yml:

name: GitHub Pages

on:
push:
branches:
- pelican

permissions:
contents: read

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout do repositório
uses: actions/checkout@v5
with:
submodules: recursive

  - name: Configura python
    uses: actions/setup-python@v6
    with:
      python-version: '3.5.10'
      cache: pip
  
  - name: Instala dependências
    run: pip install -r requirements.txt

  - name: Build do site
    run: make publish

  - name: Upload do site
    uses: actions/upload-pages-artifact@v4
    with:
      path: output/

deploy:
name: Deploy
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-20.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy no GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

Please create a pull request with these changes and provide the PR URL in the response.

This pull request was created as a result of the following prompt from Copilot chat.

Update the two GitHub Actions workflow files to ensure the jobs run on Ubuntu 20.04 and use Python 3.5. Specifically:

Files to update:

  • .github/workflows/build-test.yml
  • .github/workflows/github-pages.yml

Changes to make in both files:

  • Change runs-on: ubuntu-latest to runs-on: ubuntu-20.04
  • Change the actions/setup-python step to use python-version: '3.5.10' (explicit patch version) while keeping cache: pip
  • Preserve remaining steps and translations (Portuguese step names) as in the originals

Make a branch, commit the changes, and open a new pull request containing only these file updates. Provide a clear PR title and description describing the changes and why (ensuring GitHub Actions run on ubuntu-20.04 and use Python 3.5.10).

Do NOT modify other files.

Repository: pythonclub/pythonclub.github.io

Updated file contents should reflect the following YAML structure (use these as the new contents):

.github/workflows/build-test.yml:

name: Build Test

on:
push:
branches:
- '*'
- '!pelican'

permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout do repositório
uses: actions/checkout@v5
with:
submodules: recursive

  - name: Configura python
    uses: actions/setup-python@v6
    with:
      python-version: '3.5.10'
      cache: pip
  
  - name: Instala dependências
    run: pip install -r requirements.txt

  - name: Build do site
    run: make publish

.github/workflows/github-pages.yml:

name: GitHub Pages

on:
push:
branches:
- pelican

permissions:
contents: read

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout do repositório
uses: actions/checkout@v5
with:
submodules: recursive

  - name: Configura python
    uses: actions/setup-python@v6
    with:
      python-version: '3.5.10'
      cache: pip
  
  - name: Instala dependências
    run: pip install -r requirements.txt

  - name: Build do site
    run: make publish

  - name: Upload do site
    uses: actions/upload-pages-artifact@v4
    with:
      path: output/

deploy:
name: Deploy
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-20.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy no GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

Please create a pull request with these changes and provide the PR URL in the response.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: luzfcb <807599+luzfcb@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub Actions to use Ubuntu 20.04 and Python 3.5.10 Pin GitHub Actions to ubuntu-20.04 and Python 3.5.10 Oct 30, 2025
Copilot AI requested a review from luzfcb October 30, 2025 22:00
Copilot finished work on behalf of luzfcb October 30, 2025 22:00
@luzfcb luzfcb marked this pull request as ready for review October 30, 2025 22:01
@luzfcb luzfcb merged commit 16f013a into pelican Oct 30, 2025
@luzfcb luzfcb deleted the copilot/update-github-actions-ubuntu-20-04-python-3-5-10 branch October 30, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants