-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (40 loc) · 1.15 KB
/
python_actions.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
name: GitHub Actions CI
on: [pull_request]
env:
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
# - uses: nijel/rabbitmq-action@v1.0.0
# with:
# rabbitmq version: '5'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install poppler-utils
sudo apt-get install libxml2-dev libxslt1-dev
sudo apt-get install openjdk-8-jdk #icedtea-8-plugin
sudo apt-get install maven
- name: Install python dependencies
run: |
python -m pip install --upgrade wheel setuptools pip
pip install -U -r requirements.txt
pip install -U -r dev-requirements.txt
- name: Run Maven
run: |
mvn package
- name: Test with pytest
run: |
py.test
# - name: Combine coverage
# run: |
# coverage combine
- name: Upload coverage data to coveralls.io
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}