-
Notifications
You must be signed in to change notification settings - Fork 421
40 lines (40 loc) · 1 KB
/
smoketest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Smoketest
on:
push:
branches:
- main
- release/**
pull_request:
workflow_call:
workflow_dispatch:
# Cancel old runs when a new commit is pushed to the same branch if not on main
# or dev
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
defaults:
run:
working-directory: .
jobs:
smoketest:
runs-on: ubuntu-20.04
timeout-minutes: 10
if: github.repository_owner == 'mosaicml'
strategy:
matrix:
python_version:
- "3.9"
- "3.10"
- "3.11"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get composite run steps repository
uses: actions/checkout@v3
with:
repository: mosaicml/ci-testing
ref: v0.2.2
path: ./ci-testing
- uses: ./ci-testing/.github/actions/smoketest
with:
python_version: ${{ matrix.python_version }}