-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added tests * Typo * Add sh package * Add bash and conda-lock * Fix tests * Move test flag up * More fixes to local datastore use * Reduce number of tests to try to limit disk usage * More attempts to fix out of space issue * Fix micromamba tests on linux; fail fast to understand failures on mamba/conda * Remove installed environments and packages to try to keep saving more space * Typo * Long standing typo in config file * Kill me now * Only look in created envs; reduce parallelism to reduce disk size used * Run black with new version * More reduction in parallelism * Move chdir out * Break up large test case to save on disk space * Make test smaller
- Loading branch information
1 parent
9e02bbd
commit 3d51d04
Showing
42 changed files
with
729 additions
and
95 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,56 @@ | ||
name: test | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest ] | ||
python-version: [ "3.8", "3.10", "3.12" ] | ||
resolver: [ mamba, conda, micromamba ] | ||
env: | ||
METAFLOW_CONDA_DEPENDENCY_RESOLVER: ${{ matrix.resolver }} | ||
METAFLOW_CONDA_TEST: 1 | ||
METAFLOW_DATASTORE_SYSROOT_LOCAL: .metaflow | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1.9.0 | ||
with: | ||
micromamba-version: latest | ||
environment-file: dev-env.yml | ||
init-shell: bash | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
- name: install nflx-extension | ||
shell: bash -eo pipefail -l {0} | ||
run: | | ||
which pip | ||
pip install -e . --force-reinstall -U | ||
- name: install bash | ||
if: runner.os == 'macOS' | ||
run: brew install bash | ||
|
||
- name: run test | ||
shell: bash -eo pipefail -l {0} | ||
run: | | ||
set -x | ||
which pytest | ||
mkdir .metaflow | ||
pytest -n 4 tests |
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,15 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-json | ||
- repo: https://github.com/ambv/black | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
exclude: "^/metaflow_extensions/netflix_ext/vendor/" | ||
args: [-t, py34, -t, py35, -t, py36, -t, py37, -t, py38, -t, py39, -t, py310, -t, py311, -t, py312] | ||
|
||
|
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,16 @@ | ||
name: nflxext-dev | ||
category: dev | ||
channels: | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
- pytest | ||
- pytest-xdist | ||
- pytest-timeout | ||
- wheel | ||
- mamba | ||
- conda | ||
- conda-lock | ||
- conda-package-handling | ||
- pip: | ||
- sh |
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,4 +1,4 @@ | ||
CMDS_DESC = [ | ||
("debug", ".debug.debug_cmd.cli"), | ||
("environment", ".environment.environment_cmd.cli") | ||
("environment", ".environment.environment_cmd.cli"), | ||
] |
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
Oops, something went wrong.