-
Notifications
You must be signed in to change notification settings - Fork 191
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
5 changed files
with
33 additions
and
340 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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.8, 3.9] | ||
python-version: ["3.8", "3.9"] | ||
mongodb-version: ['4.0'] | ||
|
||
runs-on: ubuntu-latest | ||
|
@@ -25,26 +25,29 @@ jobs: | |
MPLBACKEND: "Agg" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
|
||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
|
||
- name: Install Python dependencies | ||
shell: bash -l {0} | ||
run: | | ||
python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools | ||
python${{ matrix.python-version }} -m piptools sync --user requirements/ubuntu-latest_py${{ matrix.python-version }}_extras.txt | ||
# Using non-editable install for testing building of MANIFEST files | ||
python${{ matrix.python-version }} -m pip install . | ||
- name: Run tests | ||
run: | | ||
# Sleeping to allow mongo a bit more time to boot, avoiding connect errors | ||
sleep 10 | ||
mongo localhost/admin --eval 'db.createUser({user: "admin",pwd: "password",roles: [ { role: "root", db: "admin" } ]})' | ||
python3 -m venv test_env | ||
. test_env/bin/activate | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-extras.txt | ||
# Using non-editable install for testing building of MANIFEST files | ||
pip install . | ||
pytest --cov=matminer matminer | ||
python${{ matrix.python-version }} -m pytest --cov=matminer matminer |
Oops, something went wrong.