Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bpuchala committed Aug 13, 2024
1 parent 4684eb1 commit 0ea2fa0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
with:
python-version: '3.11'

- name: Set up requirements and configuration variables
- name: Install build requirements
run: |
sudo apt-get update
sudo apt-get install build-essential cmake
pip install --upgrade pip wheel build
pip install --upgrade -r build_requirements.txt
- name: make
shell: bash
Expand Down
32 changes: 9 additions & 23 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,25 @@ jobs:
with:
python-version: '3.11'

- name: Set up requirements & configuration variables
- name: Install build requirements
run: |
sudo apt-get update
sudo apt-get install build-essential cmake
pip install --upgrade pip wheel
pip install -r test_requirements.txt
echo "CASM_PREFIX=$(python -m libcasm.casmglobal --prefix)" >> "$GITHUB_ENV"
CASM_SOFLAGS="-shared -Wl,--no-as-needed"
echo "CASM_SOFLAGS=${CASM_SOFLAGS}" >> "$GITHUB_ENV"
pip install --upgrade -r build_requirements.txt
- name: make
shell: bash
run: |
pip install .
- name: make test
shell: bash
run: |
python -m pytest -rsap tests
- name: Set up doc requirements
- name: Install test requirements & set configuration variables
run: |
pip install -r doc_requirements.txt
pip install -r test_requirements.txt
echo "CASM_PREFIX=$(python -m libcasm.casmglobal --prefix)" >> "$GITHUB_ENV"
CASM_SOFLAGS="-shared -Wl,--no-as-needed"
echo "CASM_SOFLAGS=${CASM_SOFLAGS}" >> "$GITHUB_ENV"
- name: build docs
- name: make test
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
python -m pytest -rsap tests
11 changes: 7 additions & 4 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ jobs:
with:
python-version: '3.11'

- name: Set up requirements & configuration variables
- name: Install build requirements
run: |
brew update
brew install cmake
pip install --upgrade pip wheel
pip install -r test_requirements.txt
pip install --upgrade -r build_requirements.txt
- name: make
shell: bash
run: |
pip install .
- name: Install test requirements & set configuration variables
run: |
pip install -r test_requirements.txt
echo "CASM_PREFIX=$(python -m libcasm.casmglobal --prefix)" >> "$GITHUB_ENV"
- name: make test
shell: bash
run: |
export CASM_PREFIX=$(python -m libcasm.casmglobal --prefix)
python -m pytest -rsap tests
3 changes: 2 additions & 1 deletion build_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pip
setuptools>=42
setuptools>=42
wheel

0 comments on commit 0ea2fa0

Please sign in to comment.