From 2178acb6f80f9cb68f06efac97da724f632c929b Mon Sep 17 00:00:00 2001 From: Yana Date: Mon, 14 Oct 2024 15:31:25 -0500 Subject: [PATCH] CI Pipeline basic --- .github/workflows/ci.yaml | 72 +++++++++++++++++++++++++++++++++++++++ README.md | 2 +- requirements.txt | 57 ++++++++++++++++--------------- 3 files changed, 103 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..820d7fdc --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,72 @@ +name: CI Pipeline + +on: + push: + branches: + - main + - yana + - aadit + - akshay + - alexia + pull_request: + branches: + - main + - yana + - aadit + - akshay + - alexia + +jobs: + build-windows: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python on Windows + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests on Windows + run: pytest + + - name: Run flake8 + run: | + flake8 . + + - name: Check code formatting with black + run: | + black --check . + + build-macos: + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python on macOS + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests on macOS + run: pytest + + - name: Run flake8 + run: | + flake8 . + + - name: Check code formatting with black + run: | + black --check . \ No newline at end of file diff --git a/README.md b/README.md index 2ead32a6..bfae031f 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -"# main-project-shmoney" +"# main-project-shmoney" diff --git a/requirements.txt b/requirements.txt index 139c5103..e348efb4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,27 +1,30 @@ -# requirements.txt -# -# Purpose: This file lists the Python packages required for this project. -# These packages are necessary for the functionality and performance of the application. -# -# How to Use: -# To install the required packages, run the following command in your terminal: -# pip install -r requirements.txt -# -# How to Add Packages: -# If you need to add a new package: -# 1. Specify the package name and version (if applicable) in the same format as the existing lines. -# 2. Save the changes to this file. -# 3. After adding a new package, consider running the command above to ensure the environment is up to date. -# -# Example: To add 'matplotlib', include the following line: -# matplotlib==3.4.3 -# -# -# -# -# -# -# If you have any questions, let me know :) ! -# -# - AR (Alexia Rendon) -# +# requirements.txt +# +# Purpose: This file lists the Python packages required for this project. +# These packages are necessary for the functionality and performance of the application. +# +# How to Use: +# To install the required packages, run the following command in your terminal: +# pip install -r requirements.txt +# +# How to Add Packages: +# If you need to add a new package: +# 1. Specify the package name and version (if applicable) in the same format as the existing lines. +# 2. Save the changes to this file. +# 3. After adding a new package, consider running the command above to ensure the environment is up to date. +# +# Example: To add 'matplotlib', include the following line: +# matplotlib==3.4.3 +# +# +# +# +# +# +# If you have any questions, let me know :) ! +# +# - AR (Alexia Rendon) +# +black==23.1.0 +flake8==6.0.0 +pytest==7.2.0 \ No newline at end of file