-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (48 loc) · 1.51 KB
/
ci.yaml
File metadata and controls
51 lines (48 loc) · 1.51 KB
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
46
47
48
49
50
51
name: CI
on: [push, pull_request]
jobs:
# Special job which automatically cancels old runs for the same branch, prevents runs for the
# same file set which has already passed, etc.
pre_job:
name: Skip Duplicate Jobs Pre Job
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@4c656bbdb6906310fa6213604828008bc28fe55d # v3.3.0
with:
cancel_others: 'true'
github_token: ${{ github.token }}
lint-checks:
needs: pre_job
name: Make requirements and lint checks
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout st2tests repository
uses: actions/checkout@v2
- name: Checkout st2 repository
uses: actions/checkout@v2
with:
repository: "StackStorm/st2"
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install apt dependencies
run: |
sudo apt install -y libldap2-dev libsasl2-dev
- name: Install virtualenv
run: |
python3 -m pip install virtualenv
- name: Make requirements
timeout-minutes: 5
run: |
script -e -c "make requirements"
- name: Make Lint
timeout-minutes: 15
run: |
script -e -c "make lint"