Skip to content

Commit

Permalink
fix: test subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Feb 6, 2024
1 parent c1f1ac8 commit 8dd79f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Run tests and collect coverage
run: pytest --cov app

- name: test run subprocess
run: |
python test_root.py
- name: Upload coverage to Codecov using uploader
run: |
curl -Os https://uploader.codecov.io/v0.7.1/linux/codecov
Expand Down
9 changes: 9 additions & 0 deletions test_root.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import subprocess

if __name__=="__main__":
p = subprocess.run(["git", "rev-parse", "--show-toplevel"], capture_output=True)
print("p")
print(p)
print("p.stdout")
print(p.stdout)
print("eof")

0 comments on commit 8dd79f7

Please sign in to comment.