Adding new classifier #2
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
# 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 |