Skip to content

Commit 104294f

Browse files
committed
New Github Test Action
1 parent c57192b commit 104294f

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflows will test the dev version of the API when pushed on github
2+
3+
name: Python Test
4+
5+
on:
6+
[push, pull_request, discussion, issues]
7+
8+
jobs:
9+
test:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
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@v2
20+
with:
21+
python-version: '3.6'
22+
- name: Install dependencies
23+
run: |
24+
cd howlongtobeatpy
25+
python -m pip install --upgrade pip
26+
pip install .
27+
- name: Test
28+
run: |
29+
nosetests howlongtobeatpy
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
1+
# This workflows will test the released version of the API
32

43
name: Python Test
54

65
on:
7-
push:
8-
branches:
9-
- master
10-
pull_request:
11-
types: [opened, synchronize, reopened]
12-
branches: [ master ]
136
release:
147
types: [created, edited]
158
schedule:

0 commit comments

Comments
 (0)