Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into swap-hac4ui
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Sep 20, 2024
2 parents d190682 + bcd7454 commit f159698
Show file tree
Hide file tree
Showing 21 changed files with 1,740 additions and 420 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: ci

on:
push:
branches: [main]
pull_request:

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
fail-fast: false

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y openmpi-bin libopenmpi3 libopenmpi-dev
- name: install test dependencies
run: >-
pip install coverage pytest pytest-cov hypothesis pytest-mock mypy
fastapi==0.110.1 httpx==0.27.0 mpi4py==3.1.6
- name: install haddock3
run: pip install -v .

## Disabled for now until we figure out a good configuration ##
# - name: check types
# run: mypy src/
###############################################################

- name: run unit tests
run: >-
pytest tests/
--cov --cov-report=term-missing --cov-append
--hypothesis-show-statistics
- name: run integration tests
run: >-
pytest integration_tests/
--cov --cov-report=term-missing --cov-append
--hypothesis-show-statistics
- name: generate coverage report
run: |
coverage report
coverage xml
- uses: codacy/codacy-coverage-reporter-action@v1
if: >-
${{ github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository }}
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage.xml
15 changes: 6 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,25 @@ on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
python-version: [3.9]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
run: |
python -m pip install pip==23.1.2 setuptools==67.7.2 wheel==0.40.0
pip install virtualenv==20.23.0 tox==4.5.1.1
- name: install haddock3
run: pip install -v .

- name: docs
run: tox -e docs
117 changes: 0 additions & 117 deletions .github/workflows/tests.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,5 @@ docs/haddock.modules.rst
docs/haddock.modules.base_cns_module.rst
docs/setup.rst
docs/clients/*rst
src/fast-rmsdmatrix
src/fcc
src/haddock/bin/
log
7 changes: 0 additions & 7 deletions .gitmodules

This file was deleted.

2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ recursive-include varia *.f
recursive-include varia *.inc
recursive-include varia *.lua
recursive-include varia *.md

include src/haddock/bin/*
Loading

0 comments on commit f159698

Please sign in to comment.