From 5af2da7135a7c4347b443584e3bb8fe366b113f2 Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Wed, 23 Nov 2022 10:43:56 +0000 Subject: [PATCH] Run tests in CI --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..d8c2951 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,23 @@ +name: Build and test +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +# This allows a subsequently queued workflow run to interrupt and cancel previous runs +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + Run-Unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: '3.9' + architecture: 'x64' + - run: pip install -r requirements.txt + - run: pytest --junit-xml=test-report/report.xml tests