-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from lsmo-epfl/release/1.0.0
Prepare release 1.0.0
- Loading branch information
Showing
109 changed files
with
35,622 additions
and
770 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
backend: ['django'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install system dependencies | ||
run: | | ||
wget -O - "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc" | sudo apt-key add - | ||
echo 'deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang' | sudo tee -a /etc/apt/sources.list.d/bintray.rabbitmq.list | ||
echo 'deb https://dl.bintray.com/rabbitmq/debian bionic main' | sudo tee -a /etc/apt/sources.list.d/bintray.rabbitmq.list | ||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list | ||
sudo apt update | ||
sudo apt install postgresql-10 rabbitmq-server graphviz | ||
sudo systemctl status rabbitmq-server.service | ||
- name: Install python dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install -e .[testing,cp2k] | ||
reentry scan -r aiida | ||
- name: Run test suite | ||
env: | ||
AIIDA_TEST_BACKEND: ${{ matrix.backend }} | ||
PYTEST_ADDOPTS: "--cov-report xml --cov-append" | ||
run: py.test | ||
|
||
- name: Upload coverage report | ||
if: github.repository == 'lsmo-epfl/aiida-ddec' | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: aiida-ddec | ||
file: ./coverage.xml | ||
fail_ci_if_error: true | ||
|
||
# docs: | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 15 | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - name: Set up Python 3.7 | ||
# uses: actions/setup-python@v1 | ||
# with: | ||
# python-version: 3.7 | ||
# - name: Install python dependencies | ||
# run: | | ||
# pip install --upgrade pip | ||
# pip install -e .[docs] | ||
# reentry scan -r aiida | ||
# - name: Build docs | ||
# run: cd docs && make | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Install python dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install -e .[pre-commit,testing] | ||
reentry scan -r aiida | ||
- name: Run pre-commit | ||
run: | | ||
pre-commit install | ||
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,3 +272,5 @@ tags | |
[._]*.un~ | ||
|
||
# End of https://www.gitignore.io/api/vim,linux,macos,python,pycharm | ||
# | ||
.idea/ |
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
Oops, something went wrong.