|
1 | 1 | name: "CI" |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [master] |
6 | | - pull_request: |
7 | | - workflow_dispatch: ~ |
| 4 | + push: |
| 5 | + branches: [master] |
| 6 | + pull_request: |
| 7 | + workflow_dispatch: ~ |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - lint: |
11 | | - runs-on: ubuntu-latest |
12 | | - steps: |
13 | | - - uses: actions/checkout@v5 |
14 | | - - uses: actions/setup-python@v6 |
15 | | - with: |
16 | | - python-version: "3.14" |
17 | | - - name: Install Dependencies |
18 | | - run: make install |
19 | | - - name: Lint |
20 | | - run: make lint |
21 | | - run-tests: |
22 | | - runs-on: ubuntu-latest |
23 | | - strategy: |
24 | | - matrix: |
25 | | - pythonversion: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
26 | | - steps: |
27 | | - - uses: actions/checkout@v5 |
28 | | - - uses: actions/setup-python@v6 |
29 | | - with: |
30 | | - python-version: ${{ matrix.pythonversion }} |
31 | | - - name: Install Dependencies |
32 | | - run: make install |
33 | | - - name: Run Tests |
34 | | - run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make coverage |
35 | | - - name: Coveralls |
36 | | - if: github.ref == 'refs/heads/master' |
37 | | - uses: coverallsapp/github-action@master |
38 | | - with: |
39 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
40 | | - path-to-lcov: "./coverage.lcov" |
41 | | - - name: Run security analysis |
42 | | - run: make scan |
43 | | - docs: |
| 10 | + lint: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v5 |
| 14 | + - uses: actions/setup-python@v6 |
| 15 | + with: |
| 16 | + python-version: "3.14" |
| 17 | + - name: Install Dependencies |
| 18 | + run: make install |
| 19 | + - name: Lint |
| 20 | + run: make lint |
| 21 | + run-tests: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + strategy: |
| 24 | + matrix: |
| 25 | + pythonversion: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v5 |
| 28 | + - uses: actions/setup-python@v6 |
| 29 | + with: |
| 30 | + python-version: ${{ matrix.pythonversion }} |
| 31 | + - name: Install Dependencies |
| 32 | + run: make install |
| 33 | + - name: Run Tests |
| 34 | + run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 make coverage |
| 35 | + - name: Coveralls |
44 | 36 | if: github.ref == 'refs/heads/master' |
45 | | - runs-on: ubuntu-latest |
46 | | - steps: |
47 | | - - uses: actions/checkout@v5 |
48 | | - - uses: actions/setup-python@v6 |
49 | | - with: |
50 | | - python-version: "3.14" |
51 | | - - name: Install Dependencies |
52 | | - run: make install |
53 | | - - name: Generate Docs |
54 | | - run: make docs |
55 | | - - name: Deploy Docs |
56 | | - uses: peaceiris/actions-gh-pages@v3 |
57 | | - with: |
58 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
59 | | - publish_dir: docs |
| 37 | + uses: coverallsapp/github-action@master |
| 38 | + with: |
| 39 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 40 | + path-to-lcov: "./coverage.lcov" |
| 41 | + - name: Run security analysis |
| 42 | + run: make scan |
| 43 | + docs: |
| 44 | + if: github.ref == 'refs/heads/master' |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v5 |
| 48 | + - uses: actions/setup-python@v6 |
| 49 | + with: |
| 50 | + python-version: "3.14" |
| 51 | + - name: Install Dependencies |
| 52 | + run: make install |
| 53 | + - name: Generate Docs |
| 54 | + run: make docs |
| 55 | + - name: Deploy Docs |
| 56 | + uses: peaceiris/actions-gh-pages@v3 |
| 57 | + with: |
| 58 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 59 | + publish_dir: docs |
0 commit comments