Skip to content

Commit 6f3db45

Browse files
Merge pull request #1 from phasehq/ci
feat: add gh action to run tests on PRs
2 parents bfc231b + 3fad389 commit 6f3db45

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run pytest on Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
name: Run pytest
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.x
21+
22+
- name: Install dependencies
23+
run: pip install -r requirements.txt
24+
25+
- name: Run pytest
26+
run: python -m pytest

requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
certifi==2023.5.7
2+
cffi==1.15.1
3+
charset-normalizer==3.1.0
4+
exceptiongroup==1.1.1
5+
idna==3.4
6+
iniconfig==2.0.0
7+
packaging==23.1
8+
pluggy==1.0.0
9+
pycparser==2.21
10+
PyNaCl==1.5.0
11+
pytest==7.3.1
12+
requests==2.31.0
13+
tomli==2.0.1
14+
urllib3==2.0.2

0 commit comments

Comments
 (0)