|
1 | | -name: CI |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: [main, develop] |
6 | | - pull_request: |
7 | | - branches: [main, develop] |
8 | | - |
9 | | -jobs: |
10 | | - test: |
11 | | - runs-on: ubuntu-latest |
12 | | - strategy: |
13 | | - matrix: |
14 | | - python-version: ["3.11", "3.12"] |
15 | | - |
16 | | - steps: |
17 | | - - uses: actions/checkout@v4 |
18 | | - |
19 | | - - name: Set up Python ${{ matrix.python-version }} |
20 | | - uses: actions/setup-python@v5 |
21 | | - with: |
22 | | - python-version: ${{ matrix.python-version }} |
23 | | - |
24 | | - - name: Install dependencies |
25 | | - run: | |
26 | | - python -m pip install --upgrade pip |
27 | | - pip install -r requirements.txt |
28 | | - pip install -e ".[dev]" |
29 | | -
|
30 | | - - name: Lint with ruff |
31 | | - run: | |
32 | | - ruff check bookmark_checker tests |
33 | | -
|
34 | | - - name: Format check with black |
35 | | - run: | |
36 | | - black --check bookmark_checker tests |
37 | | -
|
38 | | - - name: Type check with mypy |
39 | | - run: | |
40 | | - mypy bookmark_checker |
41 | | -
|
42 | | - - name: Test with pytest |
43 | | - run: | |
44 | | - pytest |
45 | | -
|
46 | | - - name: Upload coverage |
47 | | - uses: codecov/codecov-action@v3 |
48 | | - with: |
49 | | - file: ./coverage.xml |
50 | | - fail_ci_if_error: false |
51 | | - |
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main, develop] |
| 6 | + pull_request: |
| 7 | + branches: [main, develop] |
| 8 | + |
| 9 | +jobs: |
| 10 | + test: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + python-version: ["3.11", "3.12"] |
| 15 | + |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v4 |
| 18 | + |
| 19 | + - name: Set up Python ${{ matrix.python-version }} |
| 20 | + uses: actions/setup-python@v5 |
| 21 | + with: |
| 22 | + python-version: ${{ matrix.python-version }} |
| 23 | + |
| 24 | + - name: Install dependencies |
| 25 | + run: | |
| 26 | + python -m pip install --upgrade pip |
| 27 | + pip install -r requirements.txt |
| 28 | + pip install -e ".[dev]" |
| 29 | +
|
| 30 | + - name: Lint with ruff |
| 31 | + run: | |
| 32 | + ruff check bookmark_checker media_checker tests |
| 33 | +
|
| 34 | + - name: Format check with black |
| 35 | + run: | |
| 36 | + black --check bookmark_checker media_checker tests |
| 37 | +
|
| 38 | + - name: Type check with mypy |
| 39 | + run: | |
| 40 | + mypy bookmark_checker media_checker || true |
| 41 | +
|
| 42 | + - name: Test with pytest |
| 43 | + run: | |
| 44 | + pytest --cov=bookmark_checker --cov=media_checker --cov-report=xml --cov-report=term-missing |
| 45 | +
|
| 46 | + - name: Upload coverage |
| 47 | + uses: codecov/codecov-action@v3 |
| 48 | + with: |
| 49 | + file: ./coverage.xml |
| 50 | + fail_ci_if_error: false |
0 commit comments