-
Notifications
You must be signed in to change notification settings - Fork 82
39 lines (33 loc) · 1.08 KB
/
pull_request.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
# CI stages to execute against Pull Requests
name: Pull Requests
on:
pull_request:
types: ["opened", "synchronize", "reopened"]
env:
PYCURL_SSL_LIBRARY: openssl
jobs:
codechecks:
name: Code Quality
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.9, 3.12]
steps:
- name: Checkout WrapanAPI
uses: actions/checkout@v3
- name: Set Up Python-${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
sudo apt update
sudo apt-get install -y libgnutls28-dev libcurl4-openssl-dev libssl-dev
# 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 wheel
pip uninstall -y pycurl
pip install --compile --no-cache-dir pycurl
pip install -U -e .[test]
- name: Run Unit Tests
run: py.test tests/ -v --cov wrapanapi