Skip to content

Commit

Permalink
Test on ubuntu-latest, macos-latest, windows-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Jul 11, 2024
1 parent eab05ca commit 3a0a9f7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache dependencies
id: cache-pip
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}

- if: ${{ steps.cache-pip.outputs.cache-hit != 'true' }}
name: Install dependencies
- name: Install dependencies
run: |
python -m pip install -e plugins/hanlp_trie
python -m pip install -e plugins/hanlp_common
Expand All @@ -69,6 +61,7 @@ jobs:
key: hanlp-data

- name: Test with pytest
shell: bash
run: |
pytest tests
pytest plugins/hanlp_trie/tests
Expand Down

0 comments on commit 3a0a9f7

Please sign in to comment.