-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
768 additions
and
214 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,24 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Install pymongo | ||
run: | | ||
pip uninstall -y bson | ||
pip install pymongo | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: '4.4' | ||
|
||
- name: Remove Build Directory | ||
run: rm -rf build/ | ||
|
||
- name: Run Tests | ||
run: pytest tests | ||
run: coverage run -m pytest tests | ||
|
||
- name: Show Coverage | ||
run: coverage report | ||
|
||
tests-windows: | ||
name: Test Windows | ||
|
@@ -46,7 +62,7 @@ jobs: | |
pip install -r requirements.txt | ||
- name: Run Tests | ||
run: pytest tests | ||
run: pytest -m "not mongodb" tests | ||
|
||
tests-macos: | ||
name: Test MacOS | ||
|
@@ -68,4 +84,4 @@ jobs: | |
pip install -r requirements.txt | ||
- name: Run Tests | ||
run: pytest tests | ||
run: pytest -m "not mongodb" tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
pip install -r requirements.txt | ||
- name: Run Tests | ||
run: pytest tests | ||
run: pytest -m "not mongodb" tests | ||
|
||
tests-windows: | ||
name: Test Windows Python${{ matrix.python-version }} | ||
|
@@ -55,7 +55,7 @@ jobs: | |
pip install -r requirements.txt | ||
- name: Run Tests | ||
run: pytest tests | ||
run: pytest -m "not mongodb" tests | ||
|
||
tests-macos: | ||
name: Test MacOS Python${{ matrix.python-version }} | ||
|
@@ -80,12 +80,46 @@ jobs: | |
pip install -r requirements.txt | ||
- name: Run Tests | ||
run: pytest tests | ||
run: pytest -m "not mongodb" tests | ||
|
||
tests-mongodb: | ||
name: Test MongoDB ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
mongodb-version: ['4.2', '4.4', '5.0', '6.0'] | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Install pymongo | ||
run: | | ||
pip uninstall -y bson | ||
pip install pymongo | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
|
||
- name: Run Tests | ||
run: pytest -m "mongodb" tests | ||
|
||
coverage: | ||
name: Coverage | ||
runs-on: ubuntu-latest | ||
needs: [tests-linux, tests-macos, tests-windows] | ||
needs: [tests-linux, tests-mongodb, tests-macos, tests-windows] | ||
|
||
steps: | ||
- name: Checkout source | ||
|
@@ -101,8 +135,24 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Install pymongo | ||
run: | | ||
pip uninstall -y bson | ||
pip install pymongo | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: '4.4' | ||
|
||
- name: Remove Build Directory | ||
run: rm -rf build/ | ||
|
||
- name: Run Coverage Tests | ||
run: coverage run -m unittest tests/test_*.py | ||
run: coverage run -m pytest tests | ||
|
||
- name: Show Coverage | ||
run: coverage report | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
|
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ python-jose | |
faker | ||
coverage | ||
pytest | ||
cryptography~=41.0 | ||
cryptography~=41.0 |
Oops, something went wrong.