Skip to content

Commit 56c132f

Browse files
committed
Add GitHub Actions workflow for Tox
Signed-off-by: HarshvMahawar <hv062727@gmail.com>
1 parent 8fef762 commit 56c132f

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/tox.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Tox on PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- '**' # Run on all branches for PRs
8+
9+
jobs:
10+
tox-tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: [3.11] # Test against multiple Python versions
16+
17+
steps:
18+
# Checkout the code
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
# Setup Python
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
# Install tox
29+
- name: Install tox
30+
run: pip install tox
31+
32+
# Run tox
33+
- name: Run tox
34+
run: tox

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ commands =
2020
[testenv:test]
2121
deps =
2222
pytest==7.4.2
23-
commands = pytest
23+
commands = pytest

0 commit comments

Comments
 (0)