Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Pipeline basic #1

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
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 .

- name: Check for unused dependencies
run: |
pip-check

- name: Run tests
run: pytest

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 .

- name: Check for unused dependencies
run: |
pip-check

- name: Run tests
run: pytest
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
2 changes: 2 additions & 0 deletions tests/test1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test1():
assert True