Skip to content

Commit

Permalink
Merge pull request #1 from CS222-UIUC/yana
Browse files Browse the repository at this point in the history
CI Pipeline basic
  • Loading branch information
YanaR05 authored Oct 23, 2024
2 parents a71c22e + 78a87f6 commit 0efbb20
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 28 deletions.
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

0 comments on commit 0efbb20

Please sign in to comment.