Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: upgrade versions of tools used in the Github Actions workflows #661

Merged
merged 8 commits into from
Mar 14, 2024
35 changes: 29 additions & 6 deletions .github/workflows/test-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,30 @@

name: Test Changes

on: [push, pull_request]
on:
push:
branches: [ "master" ]
pull_request:
types: [opened, reopened, synchronize, ready_for_review, labeled]
workflow_dispatch:
inputs:
logLevel:
Dismissed Show dismissed Hide dismissed
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: true

jobs:
run-guard:
Expand Down Expand Up @@ -50,7 +73,7 @@
echo 'python_eol=yes' >> $GITHUB_ENV

- name: Checkout source code
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Install linux tools
if: matrix.os == 'ubuntu-latest'
Expand All @@ -60,13 +83,13 @@

- name: Set up Python ${{ matrix.python }}
if: env.python_eol == 'no'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Set up Python ${{ matrix.python }} discontinued on ${{ matrix.os }}
if: env.python_eol == 'yes'
uses: MatteoH2O1999/setup-python@v1
uses: MatteoH2O1999/setup-python@v3
with:
python-version: ${{ matrix.python }}
cache: pip
Expand Down Expand Up @@ -160,10 +183,10 @@

steps:
- name: Checkout source code
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

Expand Down