Skip to content

Commit

Permalink
Add gha
Browse files Browse the repository at this point in the history
  • Loading branch information
Xarthisius committed Oct 4, 2023
1 parent f46439e commit cccf203
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit cccf203

Please # to comment.