Skip to content

Commit

Permalink
use the same caching and a pip install for all CI (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteEbner authored Dec 1, 2021
1 parent 3e753e8 commit 96cd69b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: cache_v1_${{ env.pythonLocation }}-${{ hashFiles('requirements/**') }}
- name: Install Dependencies and lightly
run: pip install -e '.[all]'
- name: Run Pytest
run: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Dependencies
run: pip install -e '.[all]'
- name: Install lightly directly from a branch
run: |
sudo apt install git
pip uninstall lightly --yes
BRANCH_NAME=${GITHUB_REF##*/}
pip install "git+https://github.com/lightly-ai/lightly.git@$BRANCH_NAME"
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: cache_v1_${{ env.pythonLocation }}-${{ hashFiles('requirements/**') }}
- name: Install Dependencies and lightly
run: pip install .
- name: basic tests of CLI
run: |
LIGHTLY_SERVER_LOCATION="localhost:-1"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_unmocked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: cache_v1_${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
key: cache_v1_${{ env.pythonLocation }}-${{ hashFiles('requirements/**') }}
- name: Install Dependencies and lightly
run: pip install .
- name: run unmocked tests
Expand Down

0 comments on commit 96cd69b

Please sign in to comment.