diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4e4aed..501506c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 3f2d160..67526ab 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -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 diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index aaf080e..0456e96 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -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 diff --git a/build_requirements.txt b/build_requirements.txt index fc27e0b..1dd1370 100644 --- a/build_requirements.txt +++ b/build_requirements.txt @@ -1,2 +1,3 @@ pip -setuptools>=42 \ No newline at end of file +setuptools>=42 +wheel