Skip to content

Build macos x86_64 wheels with macos-13 Github Actions runner #85

Build macos x86_64 wheels with macos-13 Github Actions runner

Build macos x86_64 wheels with macos-13 Github Actions runner #85

name: Test CASM dependencies from PyPI on Ubuntu
on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0'
jobs:
install-and-test:
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: checkout libcasm-global tests
uses: actions/checkout@v4
with:
repository: prisms-center/CASMcode_global
path: CASMcode_global
ref: v2.0.5
- name: test libcasm-global
shell: bash
run: |
cd CASMcode_global
pip install libcasm-global==2.0.5
pip install -r test_requirements.txt
python -m pytest -rsap python/tests
### libcasm-composition ###
- name: checkout libcasm-composition tests
uses: actions/checkout@v4
with:
repository: prisms-center/CASMcode_composition
path: CASMcode_composition
ref: v2.0a3
- name: test libcasm-composition
if: steps.cache-libcasm-composition-restore.outputs.cache-hit != 'true'
shell: bash
run: |
cd CASMcode_composition
pip install libcasm-composition==2.0a3
pip install -r test_requirements.txt
python -m pytest -rsap python/tests
### libcasm-xtal ###
- name: checkout libcasm-xtal tests
uses: actions/checkout@v4
with:
repository: prisms-center/CASMcode_crystallography
path: CASMcode_crystallography
ref: v2.0a10
- name: test libcasm-xtal
shell: bash
run: |
cd CASMcode_crystallography
pip install libcasm-xtal==2.0a10
pip install -r test_requirements.txt
python -m pytest -rsap python/tests