Skip to content

Commit 20d9090

Browse files
committed
ci: test Windows with pip only (no conda)
1 parent b4d3f8d commit 20d9090

1 file changed

Lines changed: 4 additions & 23 deletions

File tree

.github/workflows/unittest.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,19 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ubuntu-latest, macos-latest, windows-latest]
18+
os: [windows-latest]
1919
python-version: [3.9]
2020
steps:
2121
- uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
24-
- name: Set up Conda
25-
uses: conda-incubator/setup-miniconda@v3
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v4
2626
with:
2727
python-version: ${{ matrix.python-version }}
28-
activate-environment: test
29-
- name: Install openfst (macOS)
30-
if: runner.os == 'macOS'
31-
run: |
32-
brew install openfst
33-
echo "CPLUS_INCLUDE_PATH=/opt/homebrew/include:$CPLUS_INCLUDE_PATH" >> $GITHUB_ENV
34-
echo "LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATH" >> $GITHUB_ENV
35-
- name: Install pynini via conda (Windows)
36-
if: runner.os == 'Windows'
37-
shell: bash -el {0}
38-
run: conda install -c conda-forge pynini
3928
- name: Install dependencies
40-
shell: bash -el {0}
4129
run: |
4230
python -m pip install --upgrade pip
43-
pip install .[test] ${{ runner.os == 'Windows' && '--no-deps' || '' }}
44-
pip install flake8 pytest importlib_resources
45-
- name: Lint with flake8
46-
shell: bash -el {0}
47-
run: |
48-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
49-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
pip install .[test]
5032
- name: Test with pytest
51-
shell: bash -el {0}
5233
run: pytest

0 commit comments

Comments
 (0)