File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
- # Project lab python
1
+ # Projects lab python
You can’t perform that action at this time.
0 commit comments