Skip to content

Update main.yml

Update main.yml #1

Workflow file for this run

name: Python CI/CD Pipeline
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# Job 1: Lint, Test and Build
test-and-build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # or any specific version needed
# Step 5: Run tests
- name: Run Tests
run: |
pip install pytest
echo "run tests"