|
7 | 7 | branches: [ master ] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - build: |
| 10 | + lint: |
11 | 11 | runs-on: ${{ matrix.os }} |
12 | 12 | strategy: |
13 | 13 | matrix: |
14 | | - python-version: [3.5, 3.6, 3.7] |
15 | | - os: [ubuntu-latest] |
| 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 |
16 | 29 |
|
| 30 | + readme: |
| 31 | + runs-on: ${{ matrix.os }} |
| 32 | + strategy: |
| 33 | + matrix: |
| 34 | + python-version: [3.6, 3.7, 3.8] |
| 35 | + os: [ubuntu-latest, macos-latest] |
17 | 36 | steps: |
18 | 37 | - uses: actions/checkout@v1 |
19 | 38 | - name: Set up Python ${{ matrix.python-version }} |
20 | 39 | uses: actions/setup-python@v1 |
21 | 40 | with: |
22 | 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 |
23 | 46 |
|
24 | | - - name: Install dependencies |
25 | | - run: | |
26 | | - python -m pip install --upgrade pip |
27 | | - pip install tox tox-gh-actions |
| 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] |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v1 |
| 55 | + - name: Set up Python ${{ matrix.python-version }} |
| 56 | + uses: actions/setup-python@v1 |
| 57 | + with: |
| 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 |
28 | 66 |
|
| 67 | + tutorials: |
| 68 | + runs-on: ${{ matrix.os }} |
| 69 | + strategy: |
| 70 | + matrix: |
| 71 | + python-version: [3.6, 3.7, 3.8] |
| 72 | + os: [ubuntu-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 }} |
29 | 79 | - if: matrix.os == 'ubuntu-latest' |
30 | | - name: Install pandoc - Ubuntu |
31 | | - run: | |
32 | | - sudo apt install pandoc |
33 | | -
|
| 80 | + name: Install dependencies - Ubuntu |
| 81 | + run: sudo apt-get install graphviz |
34 | 82 | - if: matrix.os == 'macos-latest' |
35 | | - name: Install pandoc - MacOS |
| 83 | + name: Install dependencies - MacOS |
| 84 | + run: brew install graphviz |
| 85 | + - if: matrix.os == 'windows-latest' |
| 86 | + name: Install dependencies - Windows |
36 | 87 | run: | |
37 | | - brew install pandoc |
38 | | -
|
39 | | - - name: Test with tox |
40 | | - run: tox |
| 88 | + pip install 'torch>=1,<2' -f https://download.pytorch.org/whl/torch_stable.html |
| 89 | + choco install graphviz |
| 90 | + - name: Install package and dependencies |
| 91 | + run: pip install invoke jupyter .[ctgan] |
| 92 | + - name: invoke tutorials |
| 93 | + run: invoke tutorials |
0 commit comments