-
Notifications
You must be signed in to change notification settings - Fork 2.4k
44 lines (40 loc) · 1.24 KB
/
course4-week3-lab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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