MongoEngine/flask-mongoengine

View on GitHub
.github/workflows/tests.yml

Summary

Maintainability
Test Coverage
name: CI Tests

on:
  push:
    branches:
      - master
    tags:
      - "*"
  pull_request:
    branches:
      - "*"

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        mongodb-version: ["3.6", "4.0", "4.2", "4.4", "5.0"]
        python: ["3.7", "3.8", "3.9", "3.10", "pypy3.7"]

    steps:
    - uses: actions/checkout@v3
    - name: Set up Python ${{ matrix.python }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install nox virtualenv
    - name: Start MongoDB
      uses: supercharge/mongodb-github-action@1.7.0
      with:
        mongodb-version: ${{ matrix.mongodb-version }}
    - name: Test build
      run: "nox -s ci_cd_tests --python ${{ matrix.python }}"