Compare commits

...

1 Commits

Author SHA1 Message Date
Erick Friis
d916ed4f1e infra: check min versions in PR ci 2024-02-15 16:11:13 -08:00

View File

@@ -52,11 +52,29 @@ jobs:
run: |
poetry run pip install -e "$LANGCHAIN_LOCATION"
- name: Run core tests
- name: Run unit tests
shell: bash
run: |
make test
- name: Get minimum versions
working-directory: ${{ inputs.working-directory }}
id: min-version
run: |
poetry run pip install packaging
min_versions="$(poetry run python $GITHUB_WORKSPACE/.github/scripts/get_min_versions.py pyproject.toml)"
echo "min-versions=$min_versions" >> "$GITHUB_OUTPUT"
echo "min-versions=$min_versions"
- name: Run unit tests with minimum dependency versions
if: ${{ steps.min-version.outputs.min-versions != '' }}
env:
MIN_VERSIONS: ${{ steps.min-version.outputs.min-versions }}
run: |
poetry run pip install $MIN_VERSIONS
make tests
working-directory: ${{ inputs.working-directory }}
- name: Ensure the tests did not create any additional files
shell: bash
run: |