Skip to content

fix(api): pytest in python-script-template (#372) #820

fix(api): pytest in python-script-template (#372)

fix(api): pytest in python-script-template (#372) #820

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-script-template
python -m pip install --upgrade -r requirements.txt
- name: Run and Test
run: |
cd examples/python-script-template
pytest
python -c 'import this'