-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.36 KB
/
ci.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
46
47
48
49
50
51
52
53
54
name: CI Pipeline
on:
push:
branches:
- 'main'
- 'testing/**'
- 'feature/**'
- 'hotfix/**'
jobs:
lint:
runs-on: [ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up
run: docker pull python:3.12
- name: Lint
run: docker run --rm -v $PWD:/data python:3.12 bash -c "cd /data && pip install -r requirements.txt && pylint --fail-under=9.0 -d pep8 matrix_synapse_saml_mapper/*.py setup.py"
build:
runs-on: [ubuntu-22.04]
needs: [lint]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up
run: pip install -r requirements.txt
- name: Build
run: python setup.py sdist bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: python-build
path: |
build/
dist/
matrix_synapse_saml_mapper/
matrix_synapse_saml_mapper.egg-info
test-install:
runs-on: [ubuntu-22.04]
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up
run: pip install -r requirements.txt
- name: Download build
uses: actions/download-artifact@v4
with:
name: python-build
- name: Test installation
run: sudo python setup.py install