From 52878688a69a0e1827eaa2e0dbf8bc8c9137c331 Mon Sep 17 00:00:00 2001 From: IshayuR Date: Wed, 30 Oct 2024 23:21:14 -0400 Subject: [PATCH] adjust yaml --- .github/workflows/ms5.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ms5.yaml b/.github/workflows/ms5.yaml index 00fe8e6..7b3a5fc 100644 --- a/.github/workflows/ms5.yaml +++ b/.github/workflows/ms5.yaml @@ -6,48 +6,48 @@ on: jobs: test-and-lint: - runs-on: self-hosted # or ubuntu-latest + runs-on: ubuntu-latest # Ensure using a runner with Docker installed strategy: matrix: python-version: ["3.8", "3.9", "3.10"] steps: # Checkout code - - uses: actions/checkout@v2 # Updated to correct version + - uses: actions/checkout@v2 - #Set up Python + # Set up Python - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - #Install everything + # Install everything - name: Install dependencies run: | python -m pip install --upgrade pip pip install pylint flask flask_cors flasgger pytest requests - #Run pylint on all Python files + # Analyze code with pylint - name: Analyze code with pylint run: | pylint $(git ls-files '*.py') - #Build Docker Image for API + # Build Docker Image for API - name: Build API Docker Image run: | docker build -t api-image -f ./docker/dockerfile . - #Start Container + # Start Container - name: Start API Container run: | docker run -d -p 5000:5000 --name api-container api-image - #Start the API Service & Run All Tests + # Start the API Service & Run All Tests - name: Run all Python tests in directory run: | docker exec api-container pytest $(find . -name 'test_*.py') - #End the testing + # End the testing - name: Stop and Remove API Container run: | docker stop api-container