-
Notifications
You must be signed in to change notification settings - Fork 34
44 lines (40 loc) · 1.05 KB
/
build.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
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Install dependencies
run: |
python --version
pip install -U pip
pip install coverage
sudo apt-get update -y
sudo apt-get install -y mpich
sudo apt install libopenmpi-dev
pip install mpi4py
pip install pylint
pip install -r requirements.txt
pip install .
- name: Run pylint
run: |
pylint pycharge
pylint examples
pylint tests
- name: Run tests
run: coverage run -m unittest discover tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false