Skip to content

Commit

Permalink
.github/workflows: add unit_tests.yaml
Browse files Browse the repository at this point in the history
Add unit tests in github CI workflow
for running unit tests with tox on PRs.
Ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#running-tests-with-tox

Signed-off-by: Vallari Agrawal <[email protected]>
  • Loading branch information
VallariAg committed Nov 24, 2023
1 parent e88bf9e commit f5bc030
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Unit Tests (with tox)
on: pull_request

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py

0 comments on commit f5bc030

Please sign in to comment.