forked from newrelic/newrelic-lambda-layers
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 890 Bytes
/
python.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
33
34
35
36
37
38
39
40
41
42
43
name: Python Layer CI
on:
push:
branches: [master]
paths:
- "python/**"
pull_request:
paths:
- "python/**"
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install Python Dependencies
run: pip install pytest requests
- name: Install Node Dependencies
run: npm ci
working-directory: python
- name: Run Tests
run: pytest tests/
working-directory: python
env:
PYTHON_RUNTIME: "python${{ matrix.python-version }}"