|
4 | 4 | types: [create-release-tag]
|
5 | 5 |
|
6 | 6 | jobs:
|
7 |
| - testing: |
8 |
| - runs-on: ubuntu-latest |
9 |
| - strategy: |
10 |
| - matrix: |
11 |
| - python-version: ["3.10","3.11","3.12"] |
12 |
| - steps: |
13 |
| - - uses: actions/checkout@v3 |
14 |
| - |
15 |
| - - name: Set up Python ${{ matrix.python-version }} |
16 |
| - uses: actions/setup-python@v4 |
17 |
| - with: |
18 |
| - python-version: ${{ matrix.python-version }} |
19 |
| - cache: 'pip' |
20 |
| - |
21 |
| - - name: Print python version |
22 |
| - run: python --version |
23 |
| - |
24 |
| - - name: Install dependencies |
25 |
| - run: pip install -r requirements.txt |
26 |
| - |
27 |
| - - name: Run test |
28 |
| - run: DEVELOPMENT_API_KEY=${{ secrets.DEVELOPMENT_API_KEY }} pytest -s --log-cli-level=DEBUG |
29 |
| - |
30 |
| - send-test-result: |
31 |
| - name: Slack Notification |
32 |
| - needs: [testing] |
33 |
| - if: always() && (needs.testing.result == 'success' || needs.testing.result == 'failure') |
34 |
| - runs-on: ubuntu-latest |
35 |
| - steps: |
36 |
| - - uses: actions/checkout@v3 |
37 |
| - |
38 |
| - - name: Set Slack Color |
39 |
| - id: set_color |
40 |
| - run: | |
41 |
| - if [ "${{ needs.testing.result }}" == "success" ]; then |
42 |
| - echo "color=good" >> $GITHUB_ENV |
43 |
| - else |
44 |
| - echo "color=danger" >> $GITHUB_ENV |
45 |
| - fi |
46 |
| -
|
47 |
| - - name: Send Slack Notification |
48 |
| - uses: rtCamp/action-slack-notify@v2 |
49 |
| - env: |
50 |
| - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
51 |
| - SLACK_TITLE: "[xendi-python] CI pipeline for ${{ github.event.client_payload.version }}" |
52 |
| - SLACK_MESSAGE: 'Test Result: ${{ needs.testing.result }}' |
53 |
| - SLACK_COLOR: ${{ steps.set_color.outputs.color }} |
| 7 | + # testing: |
| 8 | + # runs-on: ubuntu-latest |
| 9 | + # strategy: |
| 10 | + # matrix: |
| 11 | + # python-version: ["3.10","3.11","3.12"] |
| 12 | + # steps: |
| 13 | + # - uses: actions/checkout@v3 |
| 14 | + |
| 15 | + # - name: Set up Python ${{ matrix.python-version }} |
| 16 | + # uses: actions/setup-python@v4 |
| 17 | + # with: |
| 18 | + # python-version: ${{ matrix.python-version }} |
| 19 | + # cache: 'pip' |
| 20 | + |
| 21 | + # - name: Print python version |
| 22 | + # run: python --version |
| 23 | + |
| 24 | + # - name: Install dependencies |
| 25 | + # run: pip install -r requirements.txt |
| 26 | + |
| 27 | + # - name: Run test |
| 28 | + # run: DEVELOPMENT_API_KEY=${{ secrets.DEVELOPMENT_API_KEY }} pytest -s --log-cli-level=DEBUG |
| 29 | + |
| 30 | + # send-test-result: |
| 31 | + # name: Slack Notification |
| 32 | + # needs: [testing] |
| 33 | + # if: always() && (needs.testing.result == 'success' || needs.testing.result == 'failure') |
| 34 | + # runs-on: ubuntu-latest |
| 35 | + # steps: |
| 36 | + # - uses: actions/checkout@v3 |
| 37 | + |
| 38 | + # - name: Set Slack Color |
| 39 | + # id: set_color |
| 40 | + # run: | |
| 41 | + # if [ "${{ needs.testing.result }}" == "success" ]; then |
| 42 | + # echo "color=good" >> $GITHUB_ENV |
| 43 | + # else |
| 44 | + # echo "color=danger" >> $GITHUB_ENV |
| 45 | + # fi |
| 46 | + |
| 47 | + # - name: Send Slack Notification |
| 48 | + # uses: rtCamp/action-slack-notify@v2 |
| 49 | + # env: |
| 50 | + # SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
| 51 | + # SLACK_TITLE: "[xendi-python] CI pipeline for ${{ github.event.client_payload.version }}" |
| 52 | + # SLACK_MESSAGE: 'Test Result: ${{ needs.testing.result }}' |
| 53 | + # SLACK_COLOR: ${{ steps.set_color.outputs.color }} |
54 | 54 |
|
55 | 55 | publish-release-tag:
|
56 | 56 | runs-on: ubuntu-latest
|
57 |
| - needs: [testing] |
58 | 57 | steps:
|
59 | 58 | - uses: actions/checkout@v3
|
60 | 59 |
|
|
0 commit comments