Create CITATION.cff #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |