|
63 | 63 | run: | |
64 | 64 | source venv/bin/activate |
65 | 65 | pytest -vv |
66 | | -
|
67 | | - integration-test: |
68 | | - runs-on: ubuntu-latest |
69 | | - strategy: |
70 | | - matrix: |
71 | | - runtime-param: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
72 | | - steps: |
73 | | - - name: Checkout |
74 | | - uses: actions/checkout@v3 |
75 | | - |
76 | | - - name: Set up Node 14 |
77 | | - uses: actions/setup-node@v3 |
78 | | - with: |
79 | | - node-version: 14 |
80 | | - |
81 | | - - name: Cache Node modules |
82 | | - id: cache-node-modules |
83 | | - uses: actions/cache@v3 |
84 | | - with: |
85 | | - path: "**/node_modules" |
86 | | - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} |
87 | | - |
88 | | - - name: Set up Python |
89 | | - uses: actions/setup-python@v4 |
90 | | - with: |
91 | | - python-version: 3.9 |
92 | | - |
93 | | - - name: Install Python dependencies |
94 | | - run: | |
95 | | - pip install virtualenv |
96 | | - virtualenv venv |
97 | | - source venv/bin/activate |
98 | | - pip install .[dev] |
99 | | -
|
100 | | - - name: Install Serverless Framework |
101 | | - run: sudo yarn global add serverless@^3.7.0 --prefix /usr/local |
102 | | - - name: Install Crossbuild Deps |
103 | | - run: | |
104 | | - sudo apt-get update --allow-releaseinfo-change --fix-missing |
105 | | - sudo apt install -y qemu-user-static binfmt-support |
106 | | -
|
107 | | - - name: Install dependencies |
108 | | - if: steps.cache-node-modules.outputs.cache-hit != 'true' |
109 | | - working-directory: tests/integration |
110 | | - run: yarn install |
111 | | - |
112 | | - - name: Run tests |
113 | | - env: |
114 | | - BUILD_LAYERS: true |
115 | | - DD_API_KEY: ${{ secrets.DD_API_KEY }} |
116 | | - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
117 | | - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
118 | | - RUNTIME_PARAM: ${{ matrix.runtime-param }} |
119 | | - run: ./scripts/run_integration_tests.sh |
120 | | - |
121 | | - - name: Send success metric |
122 | | - env: |
123 | | - DD_API_KEY: ${{ secrets.DD_API_KEY }} |
124 | | - run: ./scripts/send_status_metric.sh 0 $DD_API_KEY |
125 | | - |
126 | | - integration-test-failure: |
127 | | - runs-on: ubuntu-latest |
128 | | - needs: [integration-test] |
129 | | - if: always() && (needs.integration-test.result == 'failure') |
130 | | - steps: |
131 | | - - name: Checkout |
132 | | - uses: actions/checkout@v3 |
133 | | - - name: Send a failure metric |
134 | | - env: |
135 | | - DD_API_KEY: ${{ secrets.DD_API_KEY }} |
136 | | - run: ./scripts/send_status_metric.sh 1 $DD_API_KEY |
0 commit comments