Skip to content

Commit

Permalink
Merge pull request #24 from lsmo-epfl/release/1.0.0
Browse files Browse the repository at this point in the history
Prepare release 1.0.0
  • Loading branch information
yakutovicha authored Dec 9, 2020
2 parents 6e2c5fa + 35747de commit d01999c
Show file tree
Hide file tree
Showing 109 changed files with 35,622 additions and 770 deletions.
8 changes: 0 additions & 8 deletions .docker/cp2k-code.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .docker/ddec-code.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .docker/my_init.d/add-codes.sh

This file was deleted.

15 changes: 0 additions & 15 deletions .docker/opt/add-codes.sh

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/ci.yml
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 )
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,5 @@ tags
[._]*.un~

# End of https://www.gitignore.io/api/vim,linux,macos,python,pycharm
#
.idea/
26 changes: 15 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# modernizer: make sure our code-base is Python 3 ready
- repo: https://github.com/python-modernize/python-modernize.git
sha: a234ce4e185cf77a55632888f1811d83b4ad9ef2
rev: a234ce4e185cf77a55632888f1811d83b4ad9ef2
hooks:
- id: python-modernize
exclude: ^docs/
Expand All @@ -12,20 +12,24 @@
- --nobackups
- --nofix=dict_six

- repo: local
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.30.0
hooks:
# yapf = yet another python formatter
- id: yapf
name: yapf
entry: yapf
language: system
types: [python]
args: ["-i"]
exclude: >
(?x)^(
docs/.*|
)$
args: ['-i']

# prospector: collection of linters
- id: prospector
- repo: local
hooks:
# pylint: static code analysis
- id: pylint
name: pylint
entry: pylint
types: [python]
language: system
types: [file, python]
name: prospector
description: "This hook runs Prospector: https://github.com/landscapeio/prospector"
entry: prospector
Loading

0 comments on commit d01999c

Please sign in to comment.