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 5262b3a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Unit Tests (with tox)
on: pull_request

jobs:
build:

runs-on: ubuntu-latest
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 5262b3a

Please sign in to comment.