|
1 |
| -# This is a basic workflow to help you get started with Actions |
2 |
| - |
3 | 1 | name: CI
|
4 |
| - |
5 |
| -# Controls when the action will run. Triggers the workflow on push or pull request |
6 |
| -# events but only for the master branch |
7 | 2 | on:
|
8 | 3 | push:
|
9 |
| - branches: [master] |
| 4 | + branches: |
| 5 | + - master |
| 6 | + tags: |
| 7 | + - v* |
10 | 8 | pull_request:
|
11 |
| - branches: [master] |
12 | 9 |
|
13 |
| -# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
14 | 10 | jobs:
|
15 |
| - # This workflow contains a single job called "build" |
16 |
| - build: |
17 |
| - # The type of runner that the job will run on |
18 |
| - runs-on: ubuntu-latest |
| 11 | + modernize: |
| 12 | + runs-on: ${{ matrix.os }} |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + python-version: [3.6, 3.7, 3.8] |
| 17 | + os: [macOS-latest, ubuntu-latest, windows-latest] |
19 | 18 |
|
20 |
| - # Steps represent a sequence of tasks that will be executed as part of the job |
21 | 19 | steps:
|
22 |
| - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
23 |
| - - uses: actions/checkout@v2 |
| 20 | + - name: Checkout |
| 21 | + uses: actions/checkout@v2 |
24 | 22 |
|
25 |
| - # Runs a single command using the runners shell |
26 |
| - - name: Run a one-line script |
27 |
| - run: echo Hello, world! |
| 23 | + - name: Set Up Python ${{ matrix.python-version }} |
| 24 | + uses: actions/setup-python@v2 |
| 25 | + with: |
| 26 | + python-version: ${{ matrix.python-version }} |
28 | 27 |
|
29 |
| - # Runs a set of commands using the runners shell |
30 |
| - - name: Run a multi-line script |
| 28 | + - name: Set Up Node for prettier |
| 29 | + uses: actions/setup-node@v1 |
| 30 | + with: |
| 31 | + node-version: 14.x |
| 32 | + |
| 33 | + - name: Install |
31 | 34 | run: |
|
32 |
| - echo Add other actions to build, |
33 |
| - echo test, and deploy your project. |
| 35 | + pip install tox |
| 36 | +
|
| 37 | + - name: tox |
| 38 | + env: |
| 39 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 40 | + run: tox -e py,lint,coveralls |
0 commit comments