Skip to content

Commit 492dd4c

Browse files
authored
Merge pull request #6 from RedHatProductSecurity/feature/github-actions-pytest
Add GitHub Actions workflow for automated testing
2 parents 225cce5 + 8252721 commit 492dd4c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.12'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install -r requirements-dev.txt
27+
28+
- name: Run tests with pytest
29+
run: |
30+
pytest -v --tb=short

0 commit comments

Comments
 (0)