forked from splunk/slack-alerts
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 919 Bytes
/
tests.yml
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
name: Python Unit Tests
on: pull_request
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: [2.x, 3.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
CI: true
- name: Run tests
run: |
python --version
yarn test