Skip to content

Bump actions/upload-artifact from 6 to 7 #103

Bump actions/upload-artifact from 6 to 7

Bump actions/upload-artifact from 6 to 7 #103

Workflow file for this run

name: Build
on:
push:
pull_request:
schedule:
- cron: '0 12 * * 0'
jobs:
build_sdist_and_wheel:
name: Build sdist and wheel
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install build requirements
run: |
sudo apt-get update
sudo apt-get install build-essential cmake
pip install --upgrade -r build_requirements.txt
- name: make
shell: bash
run: |
python -m build
- name: upload sdist and wheel
if: always()
uses: actions/upload-artifact@v7
with:
name: dist
path: dist
- name: Install wheel
run: |
pip install dist/*.whl
- name: Install test requirements & set configuration variables
run: |
pip install -r test_requirements.txt
python -m casm.bset --autoconfigure --envfile "$GITHUB_ENV"
- name: make test
shell: bash
run: |
python -m pytest -rsap -x -m "not requires_ase" tests
- name: Install ase
run: |
pip install ase
- name: make test (requires_ase)
shell: bash
run: |
python -m pytest -rsap -x -m requires_ase tests
- name: Install doc requirements
run: |
pip install -r doc_requirements.txt
- name: build docs
shell: bash
run: |
cd doc
sphinx-build -b html . _build/html
- name: upload docs
if: always()
uses: actions/upload-artifact@v7
with:
name: casm-project-docs
path: doc/_build/html