Skip to content

Commit 15563dc

Browse files
committed
Added Pull Request test suite
Pull Requests actions can't use secrets, so just test the code
1 parent c6a957e commit 15563dc

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/python-test-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Python Test Github Dev Version
44

55
on:
6-
[push, pull_request, discussion, release, issues]
6+
[push, release]
77

88
jobs:
99
test:
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflows will test the dev version of the API when pushed on github
2+
3+
name: Python Test Github Community
4+
5+
on:
6+
[pull_request, discussion, issues]
7+
8+
jobs:
9+
test:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
# Disabling shallow clone is recommended for improving relevancy of reporting
17+
fetch-depth: 0
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.9'
22+
- name: Install dependencies
23+
run: |
24+
cd howlongtobeatpy
25+
python -m pip install --upgrade pip
26+
pip install -U pytest
27+
pip install codecov
28+
pip install .
29+
- name: Test
30+
run: |
31+
coverage run -m pytest -v && coverage report -m
32+
coverage xml

0 commit comments

Comments
 (0)