Skip to content

Commit

Permalink
Add github actions to run unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnishReddyRavula committed Apr 15, 2024
1 parent 5566adb commit 7f5ff8d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Unit tests

env:
# This should match the default python_version build arg
PYTHON_VERSION: 3.8
TOX_ENV: py38

on:
push:
branches:
- "*"
pull_request:
types: [opened, reopened]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install tox
run: pip install tox

- name: Run tests
run: tox -e ${{ env.TOX_ENV }}

0 comments on commit 7f5ff8d

Please sign in to comment.