-
Notifications
You must be signed in to change notification settings - Fork 15
59 lines (56 loc) · 2.15 KB
/
test.yml
File metadata and controls
59 lines (56 loc) · 2.15 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
52
53
54
55
56
57
58
59
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: test XMLSIG
on:
push:
branches: ["master"]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- PYTHON_VERSION: "3.6"
LXML_VERSION: "4.3.0"
os: ubuntu-20.04
- PYTHON_VERSION: "3.6"
LXML_VERSION: "4.6.4"
os: ubuntu-20.04
- PYTHON_VERSION: "3.7"
LXML_VERSION: "4.3.0"
os: ubuntu-latest
- PYTHON_VERSION: "3.7"
LXML_VERSION: "4.6.4"
os: ubuntu-latest
- PYTHON_VERSION: "3.8"
LXML_VERSION: "4.3.0"
os: ubuntu-latest
- PYTHON_VERSION: "3.8"
LXML_VERSION: "4.6.4"
os: ubuntu-latest
- PYTHON_VERSION: "3.9"
LXML_VERSION: "4.6.4"
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.PYTHON_VERSION}}
- name: Configuration
run: |
sudo apt update
sudo apt install libssl-dev openssl libxml2-dev pkg-config libxslt-dev
- name: Configure TOX
run: |
pip install pip --upgrade
pip install tox codecov tox-gh-actions wheel
pip install lxml==${{matrix.LXML_VERSION}}
- name: Generate Report
run: |
pip install coverage
pip install .[test]
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3