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

bugfix: df data synthesis with size=None, fix CI #410

Merged
merged 9 commits into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
use mamba in all CI actions
  • Loading branch information
cosmicBboy committed Feb 12, 2021
commit 23760a17fdd2d9d7097a8bc51169bb34794e747a
19 changes: 13 additions & 6 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ jobs:

- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pandera-dev
auto-update-conda: false
channels: conda-forge
python-version: ${{ env.DEFAULT_PYTHON }}
mamba-version: "*"
channels: conda-forge
channel-priority: true
activate-environment: pandera-dev
auto-update-conda: false
environment-file: environment.yml
use-only-tar-bz2: true
auto-activate-base: false
Expand Down Expand Up @@ -83,9 +84,12 @@ jobs:

- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ env.DEFAULT_PYTHON }}
mamba-version: "*"
channels: conda-forge
channel-priority: true
activate-environment: pandera-dev
auto-update-conda: false
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
use-only-tar-bz2: true
auto-activate-base: false
Expand Down Expand Up @@ -152,9 +156,12 @@ jobs:

- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ env.DEFAULT_PYTHON }}
mamba-version: "*"
channels: conda-forge
channel-priority: true
activate-environment: pandera-dev
auto-update-conda: ${{ runner.os == 'Windows' }}
python-version: ${{ matrix.python-version }}
auto-update-conda: false
environment-file: environment.yml
use-only-tar-bz2: true
auto-activate-base: false
Expand Down
9 changes: 8 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
REQUIREMENT_PATH = "requirements-dev.txt"

CI_RUN = os.environ.get("CI") == "true"
if CI_RUN:
print("Running on CI")
else:
print("Running locally")

LINE_LENGTH = 79

Expand Down Expand Up @@ -141,8 +145,10 @@ def install(session: Session, *args: str):
"""Install dependencies in the appropriate virtual environment
(conda or virtualenv) and return the type of the environmment."""
if session.virtualenv is nox.virtualenv.CondaEnv:
print("using conda installer")
conda_install(session, *args)
else:
print("using pip installer")
session.install(*args)


Expand All @@ -168,9 +174,10 @@ def install_extras(
for spec in REQUIRES[extra].values()
]
if session.virtualenv is nox.virtualenv.CondaEnv:
print("using conda installer")
conda_install(session, *specs)
else:
# Not a conda venv
print("using pip installer")
session.install(*specs)
session.install("-e", ".", "--no-deps") # install pandera

Expand Down