-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.14 KB
/
prd-test.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
44
45
# This workflow will run tests before merging a pull request to the production branch
name: Production Test
# We want to test when a pull request is:
# - opened: pull request is created
# - synchronize: at any new modification on the head branch of the PR
on:
pull_request:
types: [opened, synchronize]
branches:
- main
paths-ignore:
- "**.ts" # don't rebuild if only infrastructure has changed
- "**.md" # don't rebuild if only documentation has changed
push: # We also want to test when the PR is merged to subsequently run the deployment workflow
branches:
- main
paths-ignore:
- "**.md" # don't rebuild if only documentation has changed
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Lint with pylint
run: |
cd assets/
make lint
- name: Test with pytest
env:
SHA: ${{ github.sha }}
run: |
cd assets/
make test