Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging CI failures (round 2) #844

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
ignore:
- gh-pages
docker:
- image: googleapis/nox:0.17.0
- image: circleci/python:3.6.9
- image: mysql:5.7
environment:
MYSQL_ROOT_HOST: "%"
Expand All @@ -27,21 +27,12 @@ jobs:

steps:
- checkout
- run:
name: Decrypt credentials
command: |
if [ -n "$GOOGLE_APPLICATION_CREDENTIALS" ]; then
openssl aes-256-cbc -d -a -k "$GOOGLE_CREDENTIALS_PASSPHRASE" \
-in tests/system/credentials.json.enc \
-out $GOOGLE_APPLICATION_CREDENTIALS
else
echo "No credentials. System tests will not run."
fi
- run:
name: Run tests - opencensus
command: |
pip install --upgrade nox
nox -f noxfile.py
sudo pip install --upgrade nox
python -c "import sqlite3"
nox -f noxfile.py -s sqlite_check
- deploy:
name: Push to PyPI (if this is a release tag).
command: scripts/twine_upload.sh
Expand Down
7 changes: 7 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ def unit(session):
)


@nox.session(python=['3.5', '3.6'])
def sqlite_check(session):
# _install_test_dependencies(session)
# _install_dev_packages(session)
session.run('python', '-c', 'import sqlite3')


@nox.session(python=['2.7', '3.6'])
def system(session):
"""Run the system test suite."""
Expand Down