Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 578 Bytes

run-python-script.md

File metadata and controls

19 lines (17 loc) · 578 Bytes

Run Python script in GitHub actions

Use actions/setup-python to setup Python. You might also want to specify a specific version. The script to run, my_script.py below, lives in the repository's root.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repo
        uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v3
        with:
          python-version: 3.8
      - name: Run Python script
        run: |-
          python my_script.py