Skip to content

version sync checkpoint #1

version sync checkpoint

version sync checkpoint #1

Workflow file for this run

name: Check that pip/pypi and conda versions are in sync
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Set up pip/dependencies
run: |
python -m pip install --upgrade pip
pip install get_pypi_latest_version
- name: Get conda version
run: echo "conda_version=$(conda search -c conda-forge lsdb | tail -n1 | awk '{print $2}')" >> $GITHUB_ENV
- name: Get pip version
run: echo "pypi_version=$(get_pypi_latest_version lsdb)" >> $GITHUB_ENV
- name: Echo Versions
run: |
echo conda version=$conda_version
echo pypi version=$pypi_version
- name: Fail if versions do not match
if: ${{ env.conda_version != env.pypi_version }}
run: exit 1

Check failure on line 35 in .github/workflows/version_sync.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/version_sync.yml

Invalid workflow file

You have an error in your yaml syntax on line 35