-
Notifications
You must be signed in to change notification settings - Fork 85
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
Scott Sanderson
committed
Apr 29, 2020
1 parent
c2a5f20
commit 892b8d7
Showing
13 changed files
with
138 additions
and
66 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,99 @@ | ||
name: PGContents CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
pre-commit: | ||
name: pre-commit | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.6 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
name: ${{ matrix.name }} | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: | ||
- py27-notebook5 | ||
- py35-notebook5 | ||
- py36-notebook5 | ||
|
||
- py35-notebook6 | ||
- py36-notebook6 | ||
|
||
include: | ||
- name: py27-notebook5 | ||
python-version: 2.7 | ||
|
||
- name: py35-notebook5 | ||
python-version: 3.5 | ||
|
||
- name: py36-notebook5 | ||
python-version: 3.6 | ||
|
||
- name: py35-notebook6 | ||
python-version: 3.5 | ||
|
||
- name: py36-notebook6 | ||
python-version: 3.6 | ||
|
||
services: | ||
postgres: | ||
image: "postgres:9.5-alpine" | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: pgcontents_testing | ||
POSTGRES_USER: pgcontents_user | ||
POSTGRES_PASSWORD: pgcontents_pass | ||
|
||
steps: | ||
|
||
- name: Dump Matrix Config | ||
env: | ||
MATRIX: ${{ toJson(matrix) }} | ||
run: echo "$MATRIX" | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ matrix.name }}-pip-${{ hashFiles('**/*_constraints.txt') }} | ||
|
||
- name: Setup LibPQ | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libpq-dev | ||
- name: Install Tox | ||
run: | | ||
python -m pip install -U pip setuptools | ||
python -m pip install tox | ||
- name: Run Tox | ||
run: tox -e ${{ matrix.name }} | ||
env: | ||
PGCONTENTS_TEST_DB_URL: "postgresql://pgcontents_user:pgcontents_pass@localhost/pgcontents_testing" |
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,18 @@ | ||
default_language_version: | ||
python: python3.6 | ||
|
||
repos: | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.1.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: check-symlinks | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.7 | ||
hooks: | ||
- id: flake8 |
This file was deleted.
Oops, something went wrong.
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,10 +1,10 @@ | ||
from pgcontents import PostgresCheckpoints | ||
c = get_config() | ||
c = get_config() # noqa | ||
|
||
# Tell IPython to use PostgresCheckpoints for checkpoint storage. | ||
c.NotebookApp.checkpoints_class = PostgresCheckpoints | ||
|
||
# Set the url for the database used to store files. See | ||
# http://docs.sqlalchemy.org/en/rel_0_9/core/engines.html#postgresql | ||
# for more info on db url formatting. | ||
c.PostgresContentsManager.db_url = 'postgresql://ssanderson:[email protected]:5432/pgcontents' | ||
c.PostgresContentsManager.db_url = 'postgresql://ssanderson:[email protected]:5432/pgcontents' # noqa |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Generic single-database configuration. | ||
Generic single-database configuration. |
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 |
---|---|---|
|
@@ -57,4 +57,3 @@ def downgrade(): | |
), | ||
schema='pgcontents', | ||
) | ||
|
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,7 @@ | ||
"""empty message | ||
Revision ID: 33b3645dc7f5 | ||
Revises: | ||
Revises: | ||
Create Date: 2014-12-17 11:37:24.122882 | ||
""" | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
exclude = pgcontents/alembic/versions/* | ||
|
||
[nosetests] | ||
with-ignore-docstrings=1 | ||
with-ignore-docstrings=1 |
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