Skip to content

feat: python script template with basic structure #817

feat: python script template with basic structure

feat: python script template with basic structure #817

Workflow file for this run

name: "Python"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-python:
name: Build and Test Python
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Clone Repo
uses: actions/[email protected]
- name: Configure Python Environment
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install Requirements
run: |
cd examples/python-starters
python -m pip install --upgrade -r requirements.txt
- name: Run Python
run: |
cd examples/python-starters
python hello.py
python -c 'import this'