Skip to content

Commit

Permalink
added gitactions ci/cd for the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas Seema committed Dec 20, 2023
1 parent 5a9f831 commit 37c977e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/energy-weather-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Energy Weather Workflow
on:
push:
branches:
- main
paths:
- project/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Specify the Python version

- name: Install dependencies # Install libraries from requirements.txt
run: pip install -r requirements.txt

- name: Run tests # Run tests using test.sh file
run: bash test.sh
2 changes: 1 addition & 1 deletion project/test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pip install -r requirements.txt
python3 tests.py
python3 tests.py1

0 comments on commit 37c977e

Please sign in to comment.