Skip to content

Commit deb2497

Browse files
Add GitHub action workflow recipe
1 parent 14b5a53 commit deb2497

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflow/pytest.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will install Python dependencies, run tests with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Run tests
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up Python 3.8
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.8
24+
25+
- name: Install dependencies
26+
run: pip install pytest
27+
28+
- name: Test with pytest
29+
run: pytest

0 commit comments

Comments
 (0)