|
1 |
| -name: Test |
| 1 | +name: test |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
|
11 | 11 | - cron: "0 0 * * *"
|
12 | 12 |
|
13 | 13 | jobs:
|
14 |
| - test-python-coverage: |
15 |
| - runs-on: ubuntu-latest |
16 |
| - steps: |
17 |
| - - uses: actions/checkout@v2 |
18 |
| - - uses: actions/setup-node@v2 |
19 |
| - with: |
20 |
| - node-version: "14.x" |
21 |
| - - name: Install Specific NPM Version |
22 |
| - run: npm install -g [email protected] |
23 |
| - - name: Use Latest Python |
24 |
| - uses: actions/setup-python@v2 |
25 |
| - with: |
26 |
| - python-version: "3.9" |
27 |
| - - name: Install Python Dependencies |
28 |
| - run: pip install -r requirements/nox-deps.txt |
29 |
| - - name: Run Tests |
30 |
| - env: { "CI": "true" } |
31 |
| - run: nox -s test_python_suite -- --maxfail=3 |
32 |
| - test-python-environments: |
33 |
| - runs-on: ${{ matrix.os }} |
34 |
| - strategy: |
35 |
| - matrix: |
36 |
| - python-version: ["3.7", "3.8", "3.9", "3.10"] |
37 |
| - os: [ubuntu-latest, macos-latest, windows-latest] |
38 |
| - steps: |
39 |
| - - uses: actions/checkout@v2 |
40 |
| - - uses: actions/setup-node@v2 |
41 |
| - with: |
42 |
| - node-version: "14.x" |
43 |
| - - name: Install Specific NPM Version |
44 |
| - run: npm install -g [email protected] |
45 |
| - - name: Use Python ${{ matrix.python-version }} |
46 |
| - uses: actions/setup-python@v2 |
47 |
| - with: |
48 |
| - python-version: ${{ matrix.python-version }} |
49 |
| - - name: Install Python Dependencies |
50 |
| - run: pip install -r requirements/nox-deps.txt |
51 |
| - - name: Run Tests |
52 |
| - env: { "CI": "true" } |
53 |
| - run: nox -s test_python --stop-on-first-error -- --maxfail=3 --no-cov |
54 |
| - test-docs: |
55 |
| - runs-on: ubuntu-latest |
56 |
| - steps: |
57 |
| - - uses: actions/checkout@v2 |
58 |
| - - uses: actions/setup-node@v2 |
59 |
| - with: |
60 |
| - node-version: "14.x" |
61 |
| - - name: Install Specific NPM Version |
62 |
| - run: npm install -g [email protected] |
63 |
| - - name: Use Latest Python |
64 |
| - uses: actions/setup-python@v2 |
65 |
| - with: |
66 |
| - python-version: "3.9" |
67 |
| - - name: Install Python Dependencies |
68 |
| - run: pip install -r requirements/nox-deps.txt |
69 |
| - - name: Run Tests |
70 |
| - env: { "CI": "true" } |
71 |
| - run: nox -s test_docs |
72 |
| - test-javascript: |
73 |
| - runs-on: ubuntu-latest |
74 |
| - steps: |
75 |
| - - uses: actions/checkout@v2 |
76 |
| - - uses: actions/setup-node@v2 |
77 |
| - with: |
78 |
| - node-version: "14.x" |
79 |
| - - name: Install Specific NPM Version |
80 |
| - run: npm install -g [email protected] |
81 |
| - - name: Install Python Dependencies |
82 |
| - run: pip install -r requirements/nox-deps.txt |
83 |
| - - name: Run Tests |
84 |
| - env: { "CI": "true" } |
85 |
| - run: nox -s test_javascript |
| 14 | + python-coverage: |
| 15 | + uses: ./.github/workflows/.nox-session.yml |
| 16 | + with: |
| 17 | + job-name: "python-{0}" |
| 18 | + session-name: test_python_suite |
| 19 | + session-arguments: --maxfail=3 |
| 20 | + python-environments: |
| 21 | + uses: ./.github/workflows/.nox-session.yml |
| 22 | + with: |
| 23 | + session-name: test_python_suite |
| 24 | + session-arguments: --maxfail=3 --no-cov |
| 25 | + runs-on-array: '["ubuntu-latest", "macos-latest", "windows-latest"]' |
| 26 | + python-version-array: '["3.7", "3.8", "3.9", "3.10"]' |
| 27 | + docs: |
| 28 | + uses: ./.github/workflows/.nox-session.yml |
| 29 | + with: |
| 30 | + job-name: "python-{0}" |
| 31 | + session-name: test_docs |
| 32 | + javascript: |
| 33 | + uses: ./.github/workflows/.nox-session.yml |
| 34 | + with: |
| 35 | + job-name: "{1}" |
| 36 | + session-name: test_javascript |
0 commit comments