|
1 | | -# name: Test (cudmore) |
| 1 | +name: Test (cudmore) |
2 | 2 |
|
3 | | -# on: |
4 | | -# pull_request: |
5 | | -# branches: [main] |
6 | | -# push: |
7 | | -# branches: [main] |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [main] |
| 6 | + push: |
| 7 | + branches: [main] |
8 | 8 |
|
9 | | -# permissions: |
10 | | -# contents: read |
| 9 | +permissions: |
| 10 | + contents: read |
11 | 11 |
|
12 | | -# jobs: |
13 | | -# test: |
14 | | -# runs-on: ubuntu-latest |
15 | | -# strategy: |
16 | | -# matrix: |
17 | | -# platform: [ubuntu-latest, windows-latest, macos-latest] |
18 | | -# # python-version: ["3.9", "3.10", "3.11"] |
19 | | -# python-version: ["3.11"] |
20 | | -# steps: |
21 | | -# - uses: actions/checkout@v3 |
22 | | -# - name: Set up Python ${{ matrix.python-version }} |
23 | | -# uses: actions/setup-python@v4 |
24 | | -# with: |
25 | | -# python-version: ${{ matrix.python-version }} |
26 | | -# cache: pip |
27 | | -# cache-dependency-path: setup.py |
28 | | -# - name: Install dependencies |
29 | | -# run: | |
30 | | -# pip install -e . |
31 | | -# pip install '.[tests]' |
32 | | -# - name: Test and generate coverage report |
33 | | -# run: | |
34 | | -# pytest --cov=./tests --cov-report=xml |
35 | | -# - name: Upload coverage to Codecov |
36 | | -# uses: codecov/codecov-action@v3 |
| 12 | +jobs: |
| 13 | + test: |
| 14 | + runs-on: ubuntu-latest |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + platform: [ubuntu-latest, windows-latest, macos-latest] |
| 18 | + # python-version: ["3.9", "3.10", "3.11"] |
| 19 | + python-version: ["3.11"] |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v3 |
| 22 | + - name: Set up Python ${{ matrix.python-version }} |
| 23 | + uses: actions/setup-python@v4 |
| 24 | + with: |
| 25 | + python-version: ${{ matrix.python-version }} |
| 26 | + cache: pip |
| 27 | + cache-dependency-path: setup.py |
| 28 | + - name: Install dependencies |
| 29 | + run: | |
| 30 | + pip install -e . |
| 31 | + pip install '.[tests]' |
| 32 | + # - name: Test and generate coverage report |
| 33 | + # run: | |
| 34 | + # pytest --cov=./tests --cov-report=xml |
| 35 | + # - name: Upload coverage to Codecov |
| 36 | + # uses: codecov/codecov-action@v3 |
0 commit comments