Skip to content

Commit 8dd79f7

Browse files
fix: test subprocess
1 parent c1f1ac8 commit 8dd79f7

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
- name: Run tests and collect coverage
1818
run: pytest --cov app
1919

20+
- name: test run subprocess
21+
run: |
22+
python test_root.py
2023
- name: Upload coverage to Codecov using uploader
2124
run: |
2225
curl -Os https://uploader.codecov.io/v0.7.1/linux/codecov

test_root.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import subprocess
2+
3+
if __name__=="__main__":
4+
p = subprocess.run(["git", "rev-parse", "--show-toplevel"], capture_output=True)
5+
print("p")
6+
print(p)
7+
print("p.stdout")
8+
print(p.stdout)
9+
print("eof")

0 commit comments

Comments
 (0)