Unfreeze PyMongo and replace deprecated count() with count_documents() #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests and coverage | |
on: ["pull_request"] | |
jobs: | |
build: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
mongodb-version: ["5", "7"] | |
steps: | |
# Check out Scout code | |
- uses: actions/checkout@v3 | |
# Set up python | |
- name: Set up Python ${{ matrix.python-version}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version}} | |
# Set up mongodb | |
- name: Start MongoDB | |
uses: wbari/start-mongoDB@v0.2 | |
with: | |
mongoDBVersion: ${{ matrix.mongodb-version}} | |
- name: Production Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
- name: Dev Dependencies | |
run: | | |
pip install pytest | |
- name: Coveralls Dependencies | |
run: | | |
pip install pytest-cov coveralls | |
- name: Test with pytest & Coveralls | |
run: | | |
pytest --cov=./ tests/ | |
coveralls | |
env: | |
GITHUB: 1 | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |