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

Commit

Permalink
small CI improvements (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Dirk Groeneveld <dirkg@allenai.org>
  • Loading branch information
epwalsh and dirkgr authored Apr 24, 2020
1 parent 92e6a85 commit f6cb9ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
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

0 comments on commit f6cb9ae

Please sign in to comment.