Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/test_conda_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Conda installation
on:
workflow_dispatch:
schedule:
- cron: '48 4 * * *'
pull_request:
branches:
- main

jobs:
conda:
name: Conda installation
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-latest]
python-version: ['3.11']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: true
activate-environment: amici
- name: Install requirements
shell: bash -l {0}
run: |
conda install -c conda-forge compilers clang-tools
- name: Install AMICI
shell: bash -l {0}
run: |
pip install -v git+https://github.com/AMICI-dev/amici.git@main#egg=amici\&subdirectory=python/sdist
- name: Test import
shell: bash -l {0}
run: |
python -c "import os; import pprint; pprint.pprint(dict(os.environ))"
python -c "from amici import _amici; print(_amici)"
python -m amici
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ cmake_minimum_required(VERSION 3.22)
# src/CMakeLists.template.cmake
cmake_policy(VERSION 3.22...3.31)

# We aren't using C++20 modules, so disable scanning for them to avoid
# clang-scan-deps-notfound errors.
# See also https://discourse.cmake.org/t/cmake-3-28-cmake-cxx-compiler-clang-scan-deps-notfound-not-found/9244/3
set(CMAKE_CXX_SCAN_FOR_MODULES OFF)

project(amici)

# misc options
Expand Down Expand Up @@ -238,7 +243,8 @@ add_dependencies(${PROJECT_NAME} version)

file(GLOB PUBLIC_HEADERS include/amici/*.h)
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER
"${PUBLIC_HEADERS}")
"${PUBLIC_HEADERS}"
CXX_SCAN_FOR_MODULES OFF)
target_include_directories(
${PROJECT_NAME}
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down
Loading