You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
- windows-2022
- windows-2019
- macos-13
- macos-12
- macos-11
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Run a python script
run: print("Hello, world!")
shell: python
The text was updated successfully, but these errors were encountered:
@shogo82148 , we are aware of providing MacOS-13 user experience identical to MacOS-12. However, MacOS-13 is currently in "early" stage, some features are not yet ready, for instance, hosted cache (i.e. preinstalled tools like python).
while python is not yet available out of box (sure, it will be soon), I'd suggest the following workaround to install python
Description
The document says that
jobs.<job_id>.steps[*].shell
can bepython
.https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
For example:
However, it doesn't work on macOS 13 runners that are available from April 24, 2023.
Platforms affected
Runner images affected
Image version and build link
My example job is here: https://github.com/shogo82148/python-on-macos-13/actions/runs/4797933486/jobs/8535542817
Runner Image
Image: macos-13
Version: 20230419.1
Included Software: https://github.com/actions/runner-images/blob/macOS-13/20230419.1/images/macos/macos-13-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macOS-13%2F20230419.1
Is it regression?
it works on macos-12
Expected behavior
My python script works.
Actual behavior
I got
Error: python: command not found
.Repro steps
Here is an example workflow: https://github.com/shogo82148/python-on-macos-13/blob/main/.github/workflows/blank.yml
The text was updated successfully, but these errors were encountered: