diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5b2adcb4..df6877a17 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,16 +28,14 @@ jobs: - uses: actions/cache@v1 with: path: ${{ env.pythonLocation }} - key: ${{ runner.os }}-pydeps-${{ matrix.python }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pydeps-${{ matrix.python }} + key: ${{ runner.os }}-pydeps-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }} - name: Install requirements run: | pip install --upgrade pip setuptools wheel pip install --upgrade git+https://github.com/allenai/allennlp.git@master - pip install --upgrade -r <(grep -Ev '^allennlp$' requirements.txt) - pip install --upgrade -r dev-requirements.txt + pip install --upgrade --upgrade-strategy eager -r <(grep -Ev '^allennlp$' requirements.txt) + pip install --upgrade --upgrade-strategy eager -r dev-requirements.txt - name: Show pip freeze run: | diff --git a/Makefile b/Makefile index 87ca99d94..096bcab65 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +.PHONY : version +version : + @python -c 'from allennlp_models.version import VERSION; print(f"AllenNLP Models v{VERSION}")' + .PHONY : lint lint : flake8 -v