|
1 | 1 | name: Stack-In-A-Box CI
|
2 | 2 |
|
3 |
| -on: [push, pull_request] |
| 3 | +on: [pull_request] |
4 | 4 |
|
5 | 5 | jobs:
|
6 | 6 | lint:
|
|
13 | 13 | - uses: actions/checkout@v2
|
14 | 14 | with:
|
15 | 15 | ref: ${{ github.event.pull_request.head.sha }}
|
16 |
| - if: ${{ github.event_name }} == 'pull_request' |
17 |
| - - uses: actions/checkout@v2 |
18 |
| - if: ${{ github.event_name }} != 'pull_request' |
19 | 16 | - name: Setup Python ${{ matrix.python-version }}
|
20 | 17 | uses: actions/setup-python@v2
|
21 | 18 | with:
|
|
35 | 32 | - uses: actions/checkout@v2
|
36 | 33 | with:
|
37 | 34 | ref: ${{ github.event.pull_request.head.sha }}
|
38 |
| - if: ${{ github.event_name }} == 'pull_request' |
39 |
| - - uses: actions/checkout@v2 |
40 |
| - if: ${{ github.event_name }} != 'pull_request' |
41 | 35 | - name: Setup Python ${{ matrix.python-version }}
|
42 | 36 | uses: actions/setup-python@v2
|
43 | 37 | with:
|
|
48 | 42 | run: tox -v -e py${{ matrix.python-version }} -- -v
|
49 | 43 | - name: Run Tox Optional Modules
|
50 | 44 | run: tox -v -e py3-httpretty,py3-requests-mock,py3-responses -- -v
|
51 |
| - - name: Build Docs |
52 |
| - run: tox -v -e docs -- -v |
53 |
| - build: |
| 45 | + docs: |
54 | 46 | runs-on: ubuntu-latest
|
55 | 47 | strategy:
|
56 | 48 | fail-fast: true
|
|
60 | 52 | - uses: actions/checkout@v2
|
61 | 53 | with:
|
62 | 54 | ref: ${{ github.event.pull_request.head.sha }}
|
63 |
| - if: ${{ github.event_name }} == 'pull_request' |
64 |
| - - uses: actions/checkout@v2 |
65 |
| - if: ${{ github.event_name }} != 'pull_request' |
66 | 55 | - name: Setup Python ${{ matrix.python-version }}
|
67 | 56 | uses: actions/setup-python@v2
|
68 | 57 | with:
|
|
0 commit comments