Skip to content

Commit

Permalink
CI Pipeline basic
Browse files Browse the repository at this point in the history
  • Loading branch information
YanaR05 committed Oct 14, 2024
1 parent a71c22e commit 2178acb
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 28 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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 .
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"# main-project-shmoney"
"# main-project-shmoney"
57 changes: 30 additions & 27 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2178acb

Please sign in to comment.