Skip to content

Commit 79680a2

Browse files
committed
DevOps: Add github workflow file for tests-lab-4
1 parent 4116bd9 commit 79680a2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tests-lab-4.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests - lab 4
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
# Check all PR
8+
9+
jobs:
10+
tests:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
include:
15+
- os: ubuntu-22.04
16+
python-version: "3.11"
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Install Firefox
21+
uses: browser-actions/setup-firefox@latest
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- run: pip install tox
28+
29+
- name: run Python tests
30+
run: tox -e tests-lab-4
31+
32+
- name: run Python tests for coverage
33+
run: tox -e coverage
34+
- uses: codecov/codecov-action@v3
35+
with:
36+
files: coverage.xml
37+
verbose: true

0 commit comments

Comments
 (0)