added gitactions ci/cd for the project #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |