|
7 | 7 | branches: [ master ] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - build: |
11 | | - runs-on: ubuntu-latest |
| 10 | + lint: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + python-version: [3.8] |
| 15 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v1 |
| 18 | + - name: Set up Python ${{ matrix.python-version }} |
| 19 | + uses: actions/setup-python@v1 |
| 20 | + with: |
| 21 | + python-version: ${{ matrix.python-version }} |
| 22 | + - if: matrix.os == 'windows-latest' |
| 23 | + name: Install dependencies - Windows |
| 24 | + run: pip install 'torch>=1,<2' -f https://download.pytorch.org/whl/torch_stable.html |
| 25 | + - name: Install package |
| 26 | + run: pip install invoke .[dev] |
| 27 | + - name: invoke lint |
| 28 | + run: invoke lint |
| 29 | + |
| 30 | + readme: |
| 31 | + runs-on: ${{ matrix.os }} |
12 | 32 | strategy: |
13 | 33 | matrix: |
14 | 34 | python-version: [3.6, 3.7, 3.8] |
| 35 | + os: [ubuntu-latest, macos-latest] |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v1 |
| 38 | + - name: Set up Python ${{ matrix.python-version }} |
| 39 | + uses: actions/setup-python@v1 |
| 40 | + with: |
| 41 | + python-version: ${{ matrix.python-version }} |
| 42 | + - name: Install package and dependencies |
| 43 | + run: pip install invoke rundoc . |
| 44 | + - name: invoke readme |
| 45 | + run: invoke readme |
15 | 46 |
|
| 47 | + unit: |
| 48 | + runs-on: ${{ matrix.os }} |
| 49 | + strategy: |
| 50 | + matrix: |
| 51 | + python-version: [3.6, 3.7, 3.8] |
| 52 | + os: [ubuntu-latest, macos-latest, windows-latest] |
16 | 53 | steps: |
17 | 54 | - uses: actions/checkout@v1 |
18 | 55 | - name: Set up Python ${{ matrix.python-version }} |
19 | 56 | uses: actions/setup-python@v1 |
20 | 57 | with: |
21 | 58 | python-version: ${{ matrix.python-version }} |
| 59 | + - if: matrix.os == 'windows-latest' |
| 60 | + name: Install dependencies - Windows |
| 61 | + run: pip install 'torch>=1,<2' -f https://download.pytorch.org/whl/torch_stable.html |
| 62 | + - name: Install package and dependencies |
| 63 | + run: pip install invoke .[test] |
| 64 | + - name: invoke pytest |
| 65 | + run: invoke pytest |
22 | 66 |
|
23 | | - - name: Install dependencies |
24 | | - run: | |
25 | | - sudo apt-get install pandoc |
26 | | - python -m pip install --upgrade pip |
27 | | - pip install tox tox-gh-actions |
| 67 | + minimum: |
| 68 | + runs-on: ${{ matrix.os }} |
| 69 | + strategy: |
| 70 | + matrix: |
| 71 | + python-version: [3.6, 3.7, 3.8] |
| 72 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 73 | + steps: |
| 74 | + - uses: actions/checkout@v1 |
| 75 | + - name: Set up Python ${{ matrix.python-version }} |
| 76 | + uses: actions/setup-python@v1 |
| 77 | + with: |
| 78 | + python-version: ${{ matrix.python-version }} |
| 79 | + - if: matrix.os == 'windows-latest' |
| 80 | + name: Install dependencies - Windows |
| 81 | + run: pip install 'torch==1.4' -f https://download.pytorch.org/whl/torch_stable.html |
| 82 | + - name: Install package and dependencies |
| 83 | + run: pip install invoke .[test] |
| 84 | + - name: invoke minimum |
| 85 | + run: invoke minimum |
28 | 86 |
|
29 | | - - name: Test with tox |
30 | | - run: tox |
| 87 | + tutorials: |
| 88 | + runs-on: ${{ matrix.os }} |
| 89 | + strategy: |
| 90 | + matrix: |
| 91 | + python-version: [3.6, 3.7, 3.8] |
| 92 | + os: [ubuntu-latest] |
| 93 | + steps: |
| 94 | + - uses: actions/checkout@v1 |
| 95 | + - name: Set up Python ${{ matrix.python-version }} |
| 96 | + uses: actions/setup-python@v1 |
| 97 | + with: |
| 98 | + python-version: ${{ matrix.python-version }} |
| 99 | + - if: matrix.os == 'ubuntu-latest' |
| 100 | + name: Install dependencies - Ubuntu |
| 101 | + run: sudo apt-get install graphviz |
| 102 | + - if: matrix.os == 'macos-latest' |
| 103 | + name: Install dependencies - MacOS |
| 104 | + run: brew install graphviz |
| 105 | + - if: matrix.os == 'windows-latest' |
| 106 | + name: Install dependencies - Windows |
| 107 | + run: | |
| 108 | + pip install 'torch>=1,<2' -f https://download.pytorch.org/whl/torch_stable.html |
| 109 | + choco install graphviz |
| 110 | + - name: Install package and dependencies |
| 111 | + run: pip install invoke jupyter . |
| 112 | + - name: invoke tutorials |
| 113 | + run: invoke tutorials |
0 commit comments