|
8 | 8 | branches: [ main, master ] |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - build-linux: |
12 | | - runs-on: ubuntu-latest |
| 11 | + test: |
| 12 | + runs-on: ${{ matrix.os }} |
13 | 13 | strategy: |
14 | 14 | matrix: |
| 15 | + os: [ubuntu-latest, macos-latest] |
15 | 16 | python-version: ['3.11', '3.12', '3.13'] |
16 | 17 | steps: |
17 | 18 | - uses: actions/checkout@v4 |
18 | | - - name: Set up Python ${{ matrix.python-version }} |
19 | | - uses: actions/setup-python@v5 |
20 | | - with: |
21 | | - python-version: ${{ matrix.python-version }} |
22 | | - - name: Install dependencies |
23 | | - run: | |
24 | | - python -m pip install --upgrade pip |
25 | | - pip install -r requirements-dev.txt |
26 | | - pip install -e . |
27 | | - - name: Testing with coverage |
28 | | - run: | |
29 | | - python -m pytest tests --cov=interpolatepy --cov-report=xml --cov-report=term-missing |
30 | | - - name: Upload coverage to Codecov |
31 | | - uses: codecov/codecov-action@v5 |
32 | 19 | with: |
33 | | - file: ./coverage.xml |
34 | | - flags: unittests |
35 | | - name: codecov-umbrella |
36 | | - fail_ci_if_error: false |
37 | | - |
38 | | - build-macos: |
39 | | - runs-on: macos-latest |
40 | | - strategy: |
41 | | - matrix: |
42 | | - python-version: ['3.11', '3.12', '3.13'] |
43 | | - steps: |
44 | | - - uses: actions/checkout@v4 |
| 20 | + fetch-depth: 0 |
45 | 21 | - name: Set up Python ${{ matrix.python-version }} |
46 | 22 | uses: actions/setup-python@v5 |
47 | 23 | with: |
48 | 24 | python-version: ${{ matrix.python-version }} |
| 25 | + cache: 'pip' |
49 | 26 | - name: Install dependencies |
50 | 27 | run: | |
51 | 28 | python -m pip install --upgrade pip |
52 | | - pip install -r requirements-dev.txt |
53 | | - pip install -e . |
| 29 | + pip install -e '.[test]' |
54 | 30 | - name: Testing with coverage |
55 | 31 | run: | |
56 | 32 | python -m pytest tests --cov=interpolatepy --cov-report=xml --cov-report=term-missing |
57 | 33 | - name: Upload coverage to Codecov |
58 | 34 | uses: codecov/codecov-action@v5 |
59 | 35 | with: |
| 36 | + token: ${{ secrets.CODECOV_TOKEN }} |
60 | 37 | file: ./coverage.xml |
61 | 38 | flags: unittests |
62 | 39 | name: codecov-umbrella |
|
0 commit comments