Skip to content

Commit 6862809

Browse files
authored
Create pytest.yml
1 parent d48db7b commit 6862809

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Python application
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "3.10"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install pytest
27+
- name: Test bat_power
28+
run: pytest -m bat_power
29+
- name: Test signal_strength
30+
run: pytest -m signal_strength
31+
- name: Test vehicles
32+
run: pytest -m vehicles
33+
- name: Test joker_info
34+
run: pytest -m joker_info
35+

0 commit comments

Comments
 (0)