Skip to content

fix(C4 W3 lab 4): fix compatibility issues with workflow and app depe… #9

fix(C4 W3 lab 4): fix compatibility issues with workflow and app depe…

fix(C4 W3 lab 4): fix compatibility issues with workflow and app depe… #9

# Run unit tests for your Python application
name: C4W3-Ungraded-Lab
# Controls when the action will run.
on:
# Triggers the workflow on push request events only when there are changes in the desired path
push:
paths:
- 'course4/week3-ungraded-labs/C4_W3_Lab_4_Github_Actions/**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "test"
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
# Use bash as the shell
shell: bash
# Specify the working directory for the workflow
working-directory: course4/week3-ungraded-labs/C4_W3_Lab_4_Github_Actions/
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
-
name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
-
name: Test with pytest
run: |
cd app/
pytest