feat: python script template with basic structure #814
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |