Skip to content

Generic sdist-build hooks in conda; port prebuilt sdist/git support #48

Generic sdist-build hooks in conda; port prebuilt sdist/git support

Generic sdist-build hooks in conda; port prebuilt sdist/git support #48

Workflow file for this run

name: test-prebuilt
on:
pull_request:
push:
branches:
- main
jobs:
unit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: ${{ matrix.python-version }}
# The prebuilt unit tests mock docker / cloud SDKs, so no conda/registry
# services are needed. Install the cloud extras so the ecr/gcr/codebuild
# registry+service tests can import their SDKs.
- name: Install metaflow-prebuilt + test deps
run: |
python -m pip install --upgrade pip
pip install metaflow
# Install the checked-out metaflow-netflixext FIRST so metaflow-prebuilt's
# `metaflow-netflixext>=1.3.14` dependency resolves to this PR's package
# (its new only_binary / defer_pypi_sdist_build APIs) rather than an older
# PyPI release. Tests then run against the PR's netflixext, not published.
pip install -e "metaflow-netflixext/"
pip install -e "metaflow-prebuilt/[dev,ecr,gcr,codebuild]"
- name: Run unit tests
run: |
pytest metaflow-prebuilt/tests/unit -v --junit-xml=junit.xml
- name: Publish test results
uses: dorny/test-reporter@v1
if: always()
with:
name: Prebuilt Unit Tests (py${{ matrix.python-version }})
path: junit.xml
reporter: java-junit