Skip to content

Commit

Permalink
remove duplicate ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
federicazanca authored and alinelena committed Feb 6, 2024
1 parent 2dde1dd commit ba2a1d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 121 deletions.
48 changes: 12 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-aiida-plugin
name: ci

on: [push, pull_request]

Expand All @@ -9,8 +9,9 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.10']
python-version: ['3.9','3.10','3.11','3.12']
aiida-version: ['stable']

services:
postgres:
image: postgres:10
Expand Down Expand Up @@ -41,69 +42,44 @@ jobs:
- name: Install python dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
# Change plugin_name to test we're not specific to "aiida-diff"
#cookiecutter --no-input . plugin_name=${PLUGIN_NAME}
#pip install -e ${PLUGIN_NAME}[testing]
env:
PLUGIN_NAME: aiida-mlip
pip install -e .[testing]
- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: "--durations=0"
PLUGIN_NAME: aiida-mlip
run: |
cd ${PLUGIN_NAME}
pytest -v
run: pytest --cov aiida_mlip --cov-append .

docs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: 3.11
- name: Install python dependencies
env:
PLUGIN_NAME: aiida-mlip
run: |
pip install --upgrade pip
pip install -r requirements.txt
# Change plugin_name to test we're not specific to "aiida-diff"
#cookiecutter --no-input . plugin_name=${PLUGIN_NAME}
#pip install -e ${PLUGIN_NAME}[docs]
pip install -e .[docs]
- name: Build docs
env:
PLUGIN_NAME: aiida-mlip
run: cd ${PLUGIN_NAME}/docs && make
run: cd docs && make

pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.11"
- name: Install python dependencies
env:
PLUGIN_NAME: aiida-mlip
run: |
pip install --upgrade pip
pip install -r requirements.txt
# Change plugin_name to test we're not specific to "aiida-diff"
#cookiecutter --no-input . plugin_name=${PLUGIN_NAME}
#pip install -e ${PLUGIN_NAME}[pre-commit,docs,testing]
pip install -e .[pre-commit,docs,testing]
- name: Run pre-commit
env:
PLUGIN_NAME: aiida-mlip
run: |
cd ${PLUGIN_NAME}
git init
git add -A
pre-commit install
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
85 changes: 0 additions & 85 deletions .github/workflows/ci_orig.yml

This file was deleted.

0 comments on commit ba2a1d2

Please sign in to comment.