Skip to content

Commit

Permalink
Update ms5.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
eoa21004 authored Oct 31, 2024
1 parent b6b002e commit 6e83425
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/ms5.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: API CI/CD

# This is a trigger for any push to the repo
on:
name: API CI/CD
# This is a trigger for any push to the repo, and tells github when the actions have to be run
# Every time we do a push, the action will be executed
# The actions should be run only when there is a push from main and develop
on:
push:
branches:
- MileStone5eric

#Tells github actions what to execute when trigger condition is met
jobs:
# Each job runs in parallel
name_your_job_whatever_you_want:

# runs-on indicates which GitHub "Runners" will run this CICD pipeline
# For all CSE-2102 repos, just use the following line as is
tests: #This is the job name
runs-on: self-hosted
# This next block allows you to run this ENTIRE job on different python versions

strategy:
matrix:
#python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

python-version: ["3.8"]

# Steps are run in sequence in this job. If one step fails, the entire job fails.
Expand All @@ -30,15 +29,21 @@ jobs:
python-version: ${{ matrix.python-version }}
# Pylint is a static code analysis tool. Use this block as is to install pylint
# in the Docker container running the job


- name: Install pylint
run: |
python -m pip install --upgrade pip
pip install pylint
# Pytest is for unit testing your python code. Use this block as is to
# install pytest in the Docker container running the job
- name: Install pytest
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f ./Backend/requirements.txt ]; then pip install -r ./Backend/requirements.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

# Run pytest on your pulled codebase
- name: Test with pytest
run: |
Expand Down

0 comments on commit 6e83425

Please sign in to comment.