Skip to content

Commit

Permalink
Specific runner in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCN7 committed Sep 25, 2024
1 parent 9f1c526 commit 070c67b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/create_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: pull_request

jobs:
autopep8-check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand All @@ -27,7 +27,7 @@ jobs:
run: exit 1

isort-check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand All @@ -45,7 +45,7 @@ jobs:
continue-on-error: false

type-check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand All @@ -65,13 +65,13 @@ jobs:
python-version: ${{ vars.PYTHON_VERSION }}

- name: Install pytype
run: poetry run pip install pytype requests urllib3
run: poetry run pip install pytype

- name: Check pytype
run: pytype -d import-error sinergym/

documentation-check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:

tests:
name: build container and execute pytest
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
name: Upload Docker hub container with release tag
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/merge_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
apply-autopep8-isort:
name: Autopep8 and isort auto-format by a bot
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
apply-documentation:
name: Documentation compilation update by bot
needs: [apply-autopep8-isort]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
tests:
needs: [apply-autopep8]
name: tests execution and CodeCov upload
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# If you don't have secrets configured with docker credential, this job will be skipped
name: Container build and upload in Docker Hub
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: pull_request_target

jobs:
forkedpr-check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.event.pull_request.head.repo.full_name != github.repository

steps:
Expand Down

0 comments on commit 070c67b

Please sign in to comment.