-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v0.2.x' into merge-v0.2.x-test
- Loading branch information
Showing
17 changed files
with
356 additions
and
413 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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
# schedule: | ||
# - cron: '00 4 * * *' # daily at 4AM | ||
|
||
jobs: | ||
build: | ||
name: Test conftrack with Python ${{ matrix.python-version }} (${{ matrix.dependencies }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] | ||
dependencies: ["pip", "conda"] | ||
fail-fast: false | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Set env vars | ||
run: | | ||
export REPOSITORY_NAME=${GITHUB_REPOSITORY#*/} # just the repo, as opposed to org/repo | ||
echo "REPOSITORY_NAME=${REPOSITORY_NAME}" >> $GITHUB_ENV | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} with conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: ${{ env.REPOSITORY_NAME }}-py${{ matrix.python-version }} | ||
auto-update-conda: true | ||
miniconda-version: "latest" | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install auxiliary dependencies | ||
run: | | ||
set -vxeo pipefail | ||
python3 -m pip install --upgrade pip wheel | ||
- name: Install dependencies with ${{ matrix.dependencies }} | ||
if: matrix.dependencies == 'pip' | ||
run: | | ||
set -vxeo pipefail | ||
python3 -m pip install -r requirements.txt | ||
python3 -m pip install -r requirements-dev.txt | ||
- name: Install dependencies with ${{ matrix.dependencies }} | ||
if: matrix.dependencies == 'conda' | ||
run: | | ||
set -vxeo pipefail | ||
conda install -y -c conda-forge doct jsonschema mongomock mongoquery pymongo pytest pyyaml requests six tornado ujson | ||
- name: Install the package | ||
run: | | ||
set -vxeo pipefail | ||
python3 -m pip install . -vv --no-deps | ||
- name: Check installed dependencies | ||
run: | | ||
set -vxeo pipefail | ||
conda env list | ||
pip list | ||
conda list | ||
- name: Test with pytest | ||
run: | | ||
set -vxeuo pipefail | ||
pytest -s -vv |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# amostra configuration | ||
# EDIT | ||
mongo_host: localhost | ||
mongo_port: 27017 | ||
mongo_uri: mongodb://localhost:27017 | ||
timezone: US/Eastern | ||
protocol: http | ||
service_port: 7770 | ||
service_port: 7770 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from .ignition import start_server | ||
|
||
if __name__ == "__main__": | ||
start_server() |
Oops, something went wrong.