|
13 | 13 | - main |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - build: |
| 16 | + test-ubuntu: |
17 | 17 | runs-on: ubuntu-latest |
18 | 18 |
|
19 | 19 | strategy: |
20 | 20 | matrix: |
21 | | - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 21 | + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 22 | + |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v3 |
| 25 | + - name: Set up Python |
| 26 | + uses: actions/setup-python@v4 |
| 27 | + with: |
| 28 | + python-version: ${{ matrix.python-version }} |
| 29 | + - name: Install dependencies |
| 30 | + run: | |
| 31 | + python -m pip install --upgrade pip |
| 32 | + python -m pip install -r requirements.txt -e ".[dev]" |
| 33 | + python -m pip install --pre tox-gh-actions |
| 34 | + - name: Test with pytest |
| 35 | + run: | |
| 36 | + # remove '.' in python-version and prepend with 'py' to get the correct tox env |
| 37 | + tox -e py$(echo ${{ matrix.python-version }} | sed 's/\.//g') |
| 38 | +
|
| 39 | + test-windows: |
| 40 | + runs-on: windows-latest |
| 41 | + |
22 | 42 | steps: |
23 | | - - uses: actions/checkout@v3 |
24 | | - - name: Set up Python |
25 | | - uses: actions/setup-python@v4 |
26 | | - with: |
27 | | - python-version: ${{ matrix.python-version }} |
28 | | - - name: Install dependencies |
29 | | - run: | |
30 | | - python -m pip install --upgrade pip |
31 | | - python -m pip install -r requirements.txt -e ".[dev]" |
32 | | - - name: Test with pytest |
33 | | - run: | |
34 | | - # remove '.' in python-version and prepend with 'py' to get the correct tox env |
35 | | - tox -e py$(echo ${{ matrix.python-version }} | sed 's/\.//g') |
| 43 | + - uses: actions/checkout@v3 |
| 44 | + - name: Set up Python |
| 45 | + uses: actions/setup-python@v4 |
| 46 | + with: |
| 47 | + python-version: "3.7" |
| 48 | + - name: Install dependencies |
| 49 | + run: | |
| 50 | + python -m pip install --upgrade pip |
| 51 | + python -m pip install -r requirements.txt -e ".[dev]" |
| 52 | + python -m pip install --pre tox-gh-actions |
| 53 | + - name: Test with pytest |
| 54 | + run: tox |
| 55 | + env: |
| 56 | + PLATFORM: windows-latest |
0 commit comments