Skip to content

Commit

Permalink
Reorder ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlefran committed Jan 26, 2024
1 parent 120d7b9 commit bd24d30
Showing 1 changed file with 47 additions and 46 deletions.
93 changes: 47 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,52 +20,6 @@ jobs:
run: |
pre-commit install
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.11"]
aiida-version: ["stable"]

services:
postgres:
image: postgres:10
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install python dependencies
run: |
pip install --upgrade pip
pip install -e .[testing]
pip install subproptools
pip install aiida-submission-controller
pip install group_decomposition
- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: --durations=0
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
py.test --cov aiida_aimall --cov-append .
coveralls --service=github
#run: pytest -sv tests
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
integration:

runs-on: ubuntu-latest
Expand Down Expand Up @@ -126,6 +80,53 @@ jobs:
- name: Setup groups
run: verdi group create inp_frag

tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.11"]
aiida-version: ["stable"]

services:
postgres:
image: postgres:10
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install python dependencies
run: |
pip install --upgrade pip
pip install -e .[testing]
pip install subproptools
pip install aiida-submission-controller
pip install group_decomposition
- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: --durations=0
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
py.test --cov aiida_aimall --cov-append .
coveralls --service=github
#run: pytest -sv tests
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down

0 comments on commit bd24d30

Please sign in to comment.