Skip to content

Commit 17b2da1

Browse files
committed
Test on ubuntu-latest, macos-latest, windows-latest
1 parent eab05ca commit 17b2da1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/unit-tests.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,10 @@ jobs:
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949

50-
- name: Cache dependencies
51-
id: cache-pip
52-
uses: actions/cache@v3
53-
with:
54-
path: ${{ env.pythonLocation }}
55-
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}
56-
57-
- if: ${{ steps.cache-pip.outputs.cache-hit != 'true' }}
58-
name: Install dependencies
50+
- name: Install dependencies
51+
shell: bash
5952
run: |
53+
python -m pip install --upgrade pip
6054
python -m pip install -e plugins/hanlp_trie
6155
python -m pip install -e plugins/hanlp_common
6256
python -m pip install -e .
@@ -69,6 +63,7 @@ jobs:
6963
key: hanlp-data
7064

7165
- name: Test with pytest
66+
shell: bash
7267
run: |
7368
pytest tests
7469
pytest plugins/hanlp_trie/tests

0 commit comments

Comments
 (0)