|
1 | | -name: Python CI |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: [ "main" ] |
6 | | - pull_request: |
7 | | - branches: [ "main" ] |
8 | | - |
9 | | -jobs: |
10 | | - build: |
11 | | - |
12 | | - runs-on: ubuntu-latest |
13 | | - strategy: |
14 | | - matrix: |
15 | | - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
16 | | - |
17 | | - steps: |
18 | | - - uses: actions/checkout@v4 |
19 | | - - name: Set up Python ${{ matrix.python-version }} |
20 | | - uses: actions/setup-python@v5 |
21 | | - with: |
22 | | - python-version: ${{ matrix.python-version }} |
23 | | - - name: Install dependencies |
24 | | - run: | |
25 | | - python -m pip install --upgrade pip |
26 | | - pip install poetry |
27 | | - poetry install |
28 | | - - name: Test with unittest |
29 | | - run: | |
30 | | - poetry run coverage run -m unittest discover tests |
31 | | - - name: Upload coverage reports to Codecov |
32 | | - uses: codecov/codecov-action@v5 |
33 | | - with: |
34 | | - token: ${{ secrets.CODECOV_TOKEN }} |
| 1 | +#name: Python CI |
| 2 | +# |
| 3 | +#on: |
| 4 | +# push: |
| 5 | +# branches: [ "main" ] |
| 6 | +# pull_request: |
| 7 | +# branches: [ "main" ] |
| 8 | +# |
| 9 | +#jobs: |
| 10 | +# build: |
| 11 | +# |
| 12 | +# runs-on: ubuntu-latest |
| 13 | +# strategy: |
| 14 | +# matrix: |
| 15 | +# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 16 | +# |
| 17 | +# steps: |
| 18 | +# - uses: actions/checkout@v4 |
| 19 | +# - name: Set up Python ${{ matrix.python-version }} |
| 20 | +# uses: actions/setup-python@v5 |
| 21 | +# with: |
| 22 | +# python-version: ${{ matrix.python-version }} |
| 23 | +# - name: Install dependencies |
| 24 | +# run: | |
| 25 | +# python -m pip install --upgrade pip |
| 26 | +# pip install poetry |
| 27 | +# poetry install |
| 28 | +# - name: Test with unittest |
| 29 | +# run: | |
| 30 | +# poetry run coverage run -m unittest discover tests |
| 31 | +# - name: Upload coverage reports to Codecov |
| 32 | +# uses: codecov/codecov-action@v5 |
| 33 | +# with: |
| 34 | +# token: ${{ secrets.CODECOV_TOKEN }} |
0 commit comments