forked from komalharshita/DevPath
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 697 Bytes
/
deploy.yml
File metadata and controls
35 lines (28 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: DevPath CI/CD
on:
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Checkout code
- name: Checkout repository
uses: actions/checkout@v4
# Setup Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
# Install dependencies
- name: Install dependencies
run: |
pip install -r requirements.txt
# Run tests
- name: Run tests
run: |
python -m unittest tests/test_basic.py
# Optional: Print success
- name: Success message
run: echo "Build and tests passed successfully"