|
1 | | -# name: Windows Unit test and code coverage |
| 1 | +name: Windows Unit test and code coverage |
2 | 2 |
|
3 | | -# on: |
4 | | -# push: |
5 | | -# paths-ignore: |
6 | | -# - '**.md' |
7 | | -# - 'docs/**' |
8 | | -# pull_request: |
9 | | -# branches: |
10 | | -# - dev |
11 | | -# paths-ignore: |
12 | | -# - '**.md' |
13 | | -# - 'docs/**' |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths-ignore: |
| 6 | + - '**.md' |
| 7 | + - 'docs/**' |
| 8 | + pull_request: |
| 9 | + branches: |
| 10 | + - dev |
| 11 | + paths-ignore: |
| 12 | + - '**.md' |
| 13 | + - 'docs/**' |
14 | 14 |
|
15 | | -# jobs: |
16 | | -# build: |
| 15 | +jobs: |
| 16 | + build: |
17 | 17 |
|
18 | | -# runs-on: ${{ matrix.os }} |
19 | | -# strategy: |
20 | | -# fail-fast: false |
21 | | -# matrix: |
22 | | -# os: [windows-latest] |
23 | | -# python-version: [3.8] |
| 18 | + runs-on: ${{ matrix.os }} |
| 19 | + strategy: |
| 20 | + fail-fast: false |
| 21 | + matrix: |
| 22 | + os: [windows-latest] |
| 23 | + python-version: [3.8] |
24 | 24 |
|
25 | | -# steps: |
26 | | -# - uses: actions/checkout@v2 |
27 | | -# - uses: conda-incubator/setup-miniconda@v2 |
28 | | -# with: |
29 | | -# python-version: ${{ matrix.python-version }} |
30 | | -# auto-activate-base: true |
31 | | -# auto-update-conda: true |
32 | | -# - shell: powershell |
33 | | -# run: | |
34 | | -# conda info |
35 | | -# conda list |
36 | | -# - name: Install PyTorch |
37 | | -# shell: powershell |
38 | | -# run: | |
39 | | -# pip install torch==1.8.1 |
40 | | -# - name: Install dependencies |
41 | | -# shell: powershell |
42 | | -# run: | |
43 | | -# pip install pytest coverage coveralls |
44 | | -# conda install -c conda-forge icu pyicu |
45 | | -# pip install -r docker_requirements.txt |
46 | | -# pip install .[full] |
47 | | -# python -m nltk.downloader omw-1.4 |
48 | | -# - name: Test |
49 | | -# shell: powershell |
50 | | -# env: |
51 | | -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
52 | | -# COVERALLS_SERVICE_NAME: github |
53 | | -# run: | |
54 | | -# coverage run -m unittest discover |
55 | | -# coveralls |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v2 |
| 27 | + - uses: conda-incubator/setup-miniconda@v2 |
| 28 | + with: |
| 29 | + python-version: ${{ matrix.python-version }} |
| 30 | + auto-activate-base: true |
| 31 | + auto-update-conda: true |
| 32 | + - shell: powershell |
| 33 | + run: | |
| 34 | + conda info |
| 35 | + conda list |
| 36 | + - name: Install PyTorch |
| 37 | + shell: powershell |
| 38 | + run: | |
| 39 | + pip install torch==1.8.1 |
| 40 | + - name: Install dependencies |
| 41 | + shell: powershell |
| 42 | + run: | |
| 43 | + python -m pip install --disable-pip-version-check --user --upgrade pip setuptools |
| 44 | + python -m pip --version |
| 45 | + python -m pip install pytest coverage coveralls |
| 46 | + conda install -y -c conda-forge fairseq |
| 47 | + python -m pip install https://www.dropbox.com/s/o6p2sj5z50iim1e/PyICU-2.3.1-cp38-cp38-win_amd64.whl?dl=1 |
| 48 | + python -m pip install -r docker_requirements.txt |
| 49 | + python -m pip install .[full] |
| 50 | + python -m nltk.downloader omw-1.4 |
| 51 | + - name: Test |
| 52 | + shell: powershell |
| 53 | + env: |
| 54 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 55 | + COVERALLS_SERVICE_NAME: github |
| 56 | + run: | |
| 57 | + coverage run -m unittest discover |
| 58 | + coveralls |
0 commit comments