|
7 | 7 | pull_request: |
8 | 8 | release: |
9 | 9 | types: [published] |
| 10 | + schedule: |
| 11 | + - cron: "0 8 * * *" |
10 | 12 |
|
11 | 13 | jobs: |
12 | 14 | build: |
@@ -124,6 +126,7 @@ jobs: |
124 | 126 | DEPLOY_SHINYAPPS_SECRET: "${{ secrets.DEPLOY_SHINYAPPS_SECRET }}" |
125 | 127 | run: | |
126 | 128 | make e2e-deploys |
| 129 | +
|
127 | 130 | pypi: |
128 | 131 | name: "Deploy to PyPI" |
129 | 132 | runs-on: ubuntu-latest |
@@ -160,3 +163,56 @@ jobs: |
160 | 163 | with: |
161 | 164 | user: __token__ |
162 | 165 | password: ${{ secrets.PYPI_API_TOKEN }} |
| 166 | + |
| 167 | + testrail-reporting-nightly: |
| 168 | + runs-on: ${{ matrix.os }} |
| 169 | + if: ${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && startsWith(github.head_ref, 'testrail')) }} |
| 170 | + strategy: |
| 171 | + matrix: |
| 172 | + python-version: |
| 173 | + - "3.11" |
| 174 | + - "3.10" |
| 175 | + - "3.9" |
| 176 | + # - "3.8" # Testrail has errors when running on python 3.8; Skipping |
| 177 | + os: [ubuntu-latest] |
| 178 | + fail-fast: false |
| 179 | + |
| 180 | + steps: |
| 181 | + - uses: actions/checkout@v3 |
| 182 | + - name: Setup py-shiny |
| 183 | + uses: ./.github/py-shiny/setup |
| 184 | + with: |
| 185 | + python-version: ${{ matrix.python-version }} |
| 186 | + |
| 187 | + - name: Install node.js |
| 188 | + uses: actions/setup-node@v3 |
| 189 | + with: |
| 190 | + node-version: "18" |
| 191 | + cache: npm |
| 192 | + cache-dependency-path: examples/brownian/shinymediapipe/package-lock.json |
| 193 | + - name: Install node.js package |
| 194 | + working-directory: examples/brownian/shinymediapipe |
| 195 | + run: | |
| 196 | + npm ci |
| 197 | +
|
| 198 | + - name: Run End-to-End tests |
| 199 | + run: | |
| 200 | + make e2e-junit |
| 201 | + - name: Report results to Testrail |
| 202 | + env: |
| 203 | + TESTRAIL_URL: "https://posit.testrail.io" |
| 204 | + TESTRAIL_PROJECT: "Shiny-Python" |
| 205 | + TESTRAIL_USER: "${{ secrets.TESTRAIL_USER }}" |
| 206 | + TESTRAIL_PASSWORD: "${{ secrets.TESTRAIL_PASSWORD }}" |
| 207 | + run: | |
| 208 | + CURRENT_DATE="$(date +'%Y-%m-%d %H:%M:%S') Nightly tests" |
| 209 | + trcli \ |
| 210 | + --yes \ |
| 211 | + --host "$TESTRAIL_URL" \ |
| 212 | + --project "$TESTRAIL_PROJECT" \ |
| 213 | + --username "$TESTRAIL_USER" \ |
| 214 | + --password "$TESTRAIL_PASSWORD" \ |
| 215 | + parse_junit \ |
| 216 | + --file "report.xml" \ |
| 217 | + --title "$CURRENT_DATE" \ |
| 218 | + --close-run |
0 commit comments