Skip to content

Commit 3f5551d

Browse files
committed
Test on ubuntu-latest, macos-latest, windows-latest
1 parent eab05ca commit 3f5551d

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/unit-tests.yml

+8-13
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,14 @@ 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: |
60-
python -m pip install -e plugins/hanlp_trie
61-
python -m pip install -e plugins/hanlp_common
62-
python -m pip install -e .
63-
python -m pip install pytest
53+
python3 -m pip install --upgrade pip
54+
python3 -m pip install -e plugins/hanlp_trie
55+
python3 -m pip install -e plugins/hanlp_common
56+
python3 -m pip install -e .
57+
python3 -m pip install pytest
6458
6559
- name: Cache data
6660
uses: actions/cache@v3
@@ -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)