-
Notifications
You must be signed in to change notification settings - Fork 83
57 lines (47 loc) · 1.53 KB
/
pull_requests.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
55
56
# CI stages to execute against Pull Requests
name: Nailgun - CI
on:
pull_request:
types: ["opened", "synchronize", "reopened"]
env:
PYCURL_SSL_LIBRARY: openssl
jobs:
codechecks:
name: Code Quality
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout Nailgun
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set Up Python-${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
sudo apt update
sudo apt-get install -y libgnutls28-dev libcurl4-openssl-dev libssl-dev
# link vs compile time ssl implementations can break the environment when installing requirements
# Uninstall pycurl - its likely not installed, but in case the ubuntu-latest packages change
# Then compile and install it with PYCURL_SSL_LIBRARY set to openssl
pip install -U pip
pip uninstall -y pycurl
pip install --compile --no-cache-dir pycurl
pip install -U -r requirements.txt -r requirements-dev.txt --no-cache-dir
- name: Run Tests
run: make test
- name: Make Docs
run: |
make docs-html
make docs-clean
- name: Make Package
run: |
make package
make package-clean
- name: Analysis (git diff)
if: failure()
run: git diff