Skip to content

Commit f159698

Browse files
committed
Merge remote-tracking branch 'origin/main' into swap-hac4ui
2 parents d190682 + bcd7454 commit f159698

File tree

21 files changed

+1740
-420
lines changed

21 files changed

+1740
-420
lines changed

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
name: ci
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.10"]
15+
fail-fast: false
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: install system dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y openmpi-bin libopenmpi3 libopenmpi-dev
28+
29+
- name: install test dependencies
30+
run: >-
31+
pip install coverage pytest pytest-cov hypothesis pytest-mock mypy
32+
fastapi==0.110.1 httpx==0.27.0 mpi4py==3.1.6
33+
34+
- name: install haddock3
35+
run: pip install -v .
36+
37+
## Disabled for now until we figure out a good configuration ##
38+
# - name: check types
39+
# run: mypy src/
40+
###############################################################
41+
42+
- name: run unit tests
43+
run: >-
44+
pytest tests/
45+
--cov --cov-report=term-missing --cov-append
46+
--hypothesis-show-statistics
47+
48+
- name: run integration tests
49+
run: >-
50+
pytest integration_tests/
51+
--cov --cov-report=term-missing --cov-append
52+
--hypothesis-show-statistics
53+
54+
- name: generate coverage report
55+
run: |
56+
coverage report
57+
coverage xml
58+
59+
- uses: codacy/codacy-coverage-reporter-action@v1
60+
if: >-
61+
${{ github.event_name != 'pull_request' ||
62+
github.event.pull_request.head.repo.full_name == github.repository }}
63+
with:
64+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
65+
coverage-reports: ./coverage.xml

.github/workflows/docs.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,25 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
branches: [main]
87

98
jobs:
109
build:
11-
runs-on: ${{ matrix.platform }}
12-
strategy:
13-
matrix:
14-
platform: [ubuntu-latest, macos-latest]
15-
python-version: [3.9]
10+
runs-on: ubuntu-latest
1611

1712
steps:
1813
- uses: actions/checkout@v2
1914

20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
15+
- uses: actions/setup-python@v2
2216
with:
23-
python-version: ${{ matrix.python-version }}
17+
python-version: 3.9
2418

2519
- name: Install dependencies
2620
run: |
2721
python -m pip install pip==23.1.2 setuptools==67.7.2 wheel==0.40.0
2822
pip install virtualenv==20.23.0 tox==4.5.1.1
2923
24+
- name: install haddock3
25+
run: pip install -v .
26+
3027
- name: docs
3128
run: tox -e docs

.github/workflows/tests.yml

Lines changed: 0 additions & 117 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,5 @@ docs/haddock.modules.rst
154154
docs/haddock.modules.base_cns_module.rst
155155
docs/setup.rst
156156
docs/clients/*rst
157-
src/fast-rmsdmatrix
158-
src/fcc
157+
src/haddock/bin/
159158
log

.gitmodules

Lines changed: 0 additions & 7 deletions
This file was deleted.

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ recursive-include varia *.f
3434
recursive-include varia *.inc
3535
recursive-include varia *.lua
3636
recursive-include varia *.md
37+
38+
include src/haddock/bin/*

0 commit comments

Comments
 (0)