diff --git a/.github/workflows/pyre.yml b/.github/workflows/pyre.yml index fd773c787..0723791e8 100644 --- a/.github/workflows/pyre.yml +++ b/.github/workflows/pyre.yml @@ -19,9 +19,10 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies run: > + VERSION=$(grep "version" .pyre_configuration | sed -n -e 's/.*\(0\.0\.[0-9]*\).*/\1/p') pip install torch --index-url https://download.pytorch.org/whl/nightly/cpu && pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cpu && pip install -r requirements.txt && - pip install pyre-check-nightly==$(cat .pyre_configuration | grep version | awk '{print $2}' | sed 's/\"//g') + pip install pyre-check-nightly==$VERSION - name: Pyre check run: pyre check