Skip to content

Merge pull request #43 from prisms-center/dependabot/github_actions/2… #237

Merge pull request #43 from prisms-center/dependabot/github_actions/2…

Merge pull request #43 from prisms-center/dependabot/github_actions/2… #237

Workflow file for this run

name: Testing on ubuntu-latest
on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0'
env:
SKBUILD_CONFIGURE_OPTIONS: -DCMAKE_CXX_FLAGS='-D_GLIBCXX_USE_CXX11_ABI=0'
SKBUILD_BUILD_OPTIONS: --verbose
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Set up requirements & configuration variables
run: |
sudo apt-get update
sudo apt-get install build-essential cmake
pip install --upgrade pip wheel
git submodule update --init --recursive
pip install -r test_requirements.txt
echo "SKBUILD_CONFIGURE_OPTIONS=${{ env.SKBUILD_CONFIGURE_OPTIONS }}" >> "$GITHUB_ENV"
echo "SKBUILD_BUILD_OPTIONS=${{ env.SKBUILD_BUILD_OPTIONS }}" >> "$GITHUB_ENV"
- name: make
shell: bash
run: |
pip install -v .
- name: check
shell: bash
run: |
pip freeze
CASM_PREFIX=`python -m libcasm.casmglobal --prefix`
echo "CASM_PREFIX: ${CASM_PREFIX}"
if [ -d ${CASM_PREFIX}/.. ]; then ls -hl ${CASM_PREFIX}/..; fi
if [ -d ${CASM_PREFIX} ]; then ls -hl ${CASM_PREFIX}; fi
if [ -d ${CASM_PREFIX}/lib ]; then ls -hl ${CASM_PREFIX}/lib; fi
if [ -d ${CASM_PREFIX}/lib64 ]; then ls -hl ${CASM_PREFIX}/lib64; fi
if [ -d ${CASM_PREFIX}/include ]; then ls -hl ${CASM_PREFIX}/include; fi
if [ -d ${CASM_PREFIX}/casmglobal ]; then ls -hl ${CASM_PREFIX}/casmglobal; fi
if [ -d ${CASM_PREFIX}/container ]; then ls -hl ${CASM_PREFIX}/container; fi
- name: make test
shell: bash
run: |
python -m pytest -rsap python/tests
- name: Set up doc requirements
run: |
pip install -r doc_requirements.txt
- name: build docs
shell: bash
run: |
cd python/doc
sphinx-build -b html . _build/html
- name: upload docs
if: always()
uses: actions/upload-artifact@v4
with:
name: libcasm-global-docs
path: python/doc/_build/html