From c820265aecef9adfdf22040e810eb59bc9bd9696 Mon Sep 17 00:00:00 2001 From: Eric O Asante Date: Sat, 2 Nov 2024 06:24:25 -0400 Subject: [PATCH] nn.yaml --- .github/workflows/ms5.yaml | 56 ++++---------------------------------- 1 file changed, 6 insertions(+), 50 deletions(-) diff --git a/.github/workflows/ms5.yaml b/.github/workflows/ms5.yaml index b915b02..e4fc9d7 100644 --- a/.github/workflows/ms5.yaml +++ b/.github/workflows/ms5.yaml @@ -1,57 +1,13 @@ -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 +name: Simple CI/CD Pipeline + on: push: branches: - MileStone5eric -#Tells github actions what to execute when trigger condition is met jobs: - # Each job runs in parallel - tests: #This is the job name - - # runs-on indicates which GitHub "Runners" will run this CICD pipeline - # For all CSE-2102 repos, just use the following line as is - 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. + do-nothing: + runs-on: ubuntu-latest steps: - # Use this next line to pull your repo into the Docker container running the job - - uses: actions/checkout@v3 - # This block sets up the python version - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - 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 requirements.txt ]; then pip install -r requirements.txt; fi - - - name: Build and Run Docker - run: | - docker build -f Backend/Docker -t doc . - docker run -d -p 5000:5000 doc - - # Run pytest on your pulled codebase - - name: Test with pytest - run: | - pytest + - name: Do nothing + run: echo "This is a simple CI/CD pipeline that does nothing."