Skip to content

Commit 8c02ef7

Browse files
committed
Wrote action for testing unit tests on push and PR.
1 parent dca180e commit 8c02ef7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out repository code
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip setuptools wheel
22+
pip install -r requirements.txt
23+
24+
- name: Inject keys
25+
run: |
26+
echo -en '${{ secrets.KEYS_INI }}' >> keys.ini
27+
28+
- name: Test with pytest
29+
run: python -m pytest

0 commit comments

Comments
 (0)