Skip to content

bump version 2.0a5 #109

bump version 2.0a5

bump version 2.0a5 #109

Workflow file for this run

name: Testing on ubuntu-latest
on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0'
env:
SKBUILD_BUILD_OPTIONS: --verbose
jobs:
build-depends:
uses: ./.github/workflows/test-linux-dependencies.yml
build:
needs: build-depends
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up requirements & configuration variables
run: |
sudo apt-get update
sudo apt-get install build-essential cmake
pip install --upgrade pip wheel
echo "SKBUILD_BUILD_OPTIONS=${{ env.SKBUILD_BUILD_OPTIONS }}" >> "$GITHUB_ENV"
### libcasm-global ###
- name: restore libcasm-global cache
id: cache-libcasm-global-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_global/dist
key: ${{ runner.os }}-libcasm-global-v2-0-5
### libcasm-xtal ###
- name: restore libcasm-xtal cache
id: cache-libcasm-xtal-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_crystallography/dist
key: ${{ runner.os }}-libcasm-xtal-v2-0a11
### libcasm-mapping ###
- name: restore libcasm-mapping cache
id: cache-libcasm-mapping-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_mapping/dist
key: ${{ runner.os }}-libcasm-mapping-v2-0a4
### libcasm-clexulator ###
- name: restore libcasm-clexulator cache
id: cache-libcasm-clexulator-restore
uses: actions/cache/restore@v4
with:
path: CASMcode_clexulator/dist
key: ${{ runner.os }}-libcasm-clexulator-v2-0a5
- name: Install CASM dependencies
run: |
pip install CASMcode_global/dist/*.whl
pip install CASMcode_crystallography/dist/*.whl
pip install CASMcode_clexulator/dist/*.whl
pip install CASMcode_mapping/dist/*.whl
pip install -r build_requirements.txt
pip install -r test_requirements.txt
echo "CASM_PREFIX=$(python -m libcasm.casmglobal --prefix)" >> "$GITHUB_ENV"
- name: make
shell: bash
run: |
pip install -v .
- 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-configuration-docs
path: python/doc/_build/html