Skip to content

bump versions in github actions #3

bump versions in github actions

bump versions in github actions #3

name: Build CASM dependencies on Ubuntu
on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0'
jobs:
build-depends:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- 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 build
### 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
- name: checkout libcasm-global
if: steps.cache-libcasm-global-restore.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: prisms-center/CASMcode_global
path: CASMcode_global
ref: v2.0.5
- name: make global
if: steps.cache-libcasm-global-restore.outputs.cache-hit != 'true'
shell: bash
run: |
cd CASMcode_global
git submodule update --init --recursive
python -m build
pip install dist/*.whl
pip install -r test_requirements.txt
python -m pytest -rsap python/tests
- name: save libcasm-global cache
id: cache-libcasm-global-save
uses: actions/cache/save@v4
with:
path: CASMcode_global/dist
key: ${{ steps.cache-libcasm-global-restore.outputs.cache-primary-key }}