diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml new file mode 100644 index 0000000..9f8cd62 --- /dev/null +++ b/.github/workflows/build-test.yaml @@ -0,0 +1,35 @@ +name: Testing and Linting + +on: + push: + branches: + - main: + pull_request: + workflow_dispatch: + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11"] + mongodb-version: ["3.6"] + steps: + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Checkout repo + uses: actions/checkout@v3 + - name: Run Linter + run: tox -e lint virtual_resources/ + - name: Start MongoDB + uses: supercharge/mongodb-github-action@1.10.0 + with: + mongodb-version: ${{ matrix.mongodb-version }} + - name: Run Tests + run: tox -e pytest virtual_resources/