Skip to content

Commit d3d0100

Browse files
Merge branch 'main' into master
2 parents f2c8a96 + 0c0c20c commit d3d0100

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/ci_cd.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.12.7'
24+
25+
- name: Find and Install Dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
# Find all requirements.txt files and install dependencies for each
29+
for req_file in $(find . -name "requirements.txt"); do
30+
echo "Installing dependencies from $req_file"
31+
pip install -r "$req_file"
32+
done
33+
34+
- name: Run Tests
35+
run: |
36+
# Run tests in each subproject that contains tests
37+
for test_dir in $(find . -type d -name "tests"); do
38+
echo "Running tests in $test_dir"
39+
pytest "$test_dir"
40+
done

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Project lab python
1+
# Projects lab python

0 commit comments

Comments
 (0)