From 37c977e3feb9c3075dcf0b9e72c7013f7dd1e5b2 Mon Sep 17 00:00:00 2001 From: Srinivas Seema Date: Wed, 20 Dec 2023 12:42:42 +0100 Subject: [PATCH] added gitactions ci/cd for the project --- .github/workflows/energy-weather-workflow.yml | 24 +++++++++++++++++++ project/test.sh | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/energy-weather-workflow.yml diff --git a/.github/workflows/energy-weather-workflow.yml b/.github/workflows/energy-weather-workflow.yml new file mode 100644 index 000000000..f535252c0 --- /dev/null +++ b/.github/workflows/energy-weather-workflow.yml @@ -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 \ No newline at end of file diff --git a/project/test.sh b/project/test.sh index ee6c9e2b8..b8643de48 100644 --- a/project/test.sh +++ b/project/test.sh @@ -1,2 +1,2 @@ pip install -r requirements.txt -python3 tests.py \ No newline at end of file +python3 tests.py1 \ No newline at end of file