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