Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

small CI improvements #26

Merged
merged 2 commits into from
Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down