Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 56 additions & 56 deletions .ci/azure/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
jobs:
- job:
displayName: "Deploy Docs"
pool:
vmImage: ubuntu-latest
- job:
displayName: "Deploy Docs"
pool:
vmImage: ubuntu-latest

steps:
# No need to checkout the repo here!
- checkout: none
steps:
# No need to checkout the repo here!
- checkout: none

- bash: |
echo $IS_TAG
echo $IS_MAIN
echo $BRANCH_NAME
displayName: Report branch parameters
- bash: |
echo $IS_TAG
echo $IS_MAIN
echo $BRANCH_NAME
displayName: Report branch parameters

- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'html_docs'
targetPath: 'html'
- task: DownloadPipelineArtifact@2
inputs:
buildType: "current"
artifactName: "html_docs"
targetPath: "html"

- bash: |
ls -l html
displayName: Report downloaded cache contents.
- bash: |
ls -l html
displayName: Report downloaded cache contents.

- bash: |
git config --global user.name ${GH_NAME}
git config --global user.email ${GH_EMAIL}
git config --list | grep user.
displayName: 'Configure git'
env:
GH_NAME: $(gh.name)
GH_EMAIL: $(gh.email)
- bash: |
git config --global user.name ${GH_NAME}
git config --global user.email ${GH_EMAIL}
git config --list | grep user.
displayName: "Configure git"
env:
GH_NAME: $(gh.name)
GH_EMAIL: $(gh.email)

# upload documentation to discretize-docs gh-pages on tags
- bash: |
git clone -q --branch gh-pages --depth 1 https://${GH_TOKEN}@github.com/simpeg/discretize-docs.git
displayName: Checkout doc repository
env:
GH_TOKEN: $(gh.token)
# upload documentation to discretize-docs gh-pages on tags
- bash: |
git clone -q --branch gh-pages --depth 1 https://${GH_TOKEN}@github.com/simpeg/discretize-docs.git
displayName: Checkout doc repository
env:
GH_TOKEN: $(gh.token)

- bash: |
cd discretize-docs
rm -rf "en/$BRANCH_NAME"
mv ../html "en/$BRANCH_NAME"
touch .nojekyll
displayName: Set Doc Folder
- bash: |
cd discretize-docs
rm -rf "en/$BRANCH_NAME"
mv ../html "en/$BRANCH_NAME"
touch .nojekyll
displayName: Set Doc Folder

- bash: |
# Update latest symlink
cd discretize-docs/en
rm -f latest
ln -s "$BRANCH_NAME" latest
displayName: Point Latest to tag
condition: eq(variables.IS_TAG, true)
- bash: |
# Update latest symlink
cd discretize-docs/en
rm -f latest
ln -s "$BRANCH_NAME" latest
displayName: Point Latest to tag
condition: eq(variables.IS_TAG, true)

- bash: |
# Commit and push
cd discretize-docs
git add --all
git commit -am "Azure CI commit ref $(Build.SourceVersion)"
git push
displayName: Push documentation to discretize-docs
env:
GH_TOKEN: $(gh.token)
- bash: |
# Commit and push
cd discretize-docs
git add --all
git commit -am "Azure CI commit ref $(Build.SourceVersion)"
git push
displayName: Push documentation to discretize-docs
env:
GH_TOKEN: $(gh.token)
59 changes: 29 additions & 30 deletions .ci/azure/docs.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
jobs:
- job: BuildDocs
displayName: "Build Documentation"
pool:
vmImage: ubuntu-latest
variables:
python.version: "3.11"
doc.build: True
PYVISTA_OFF_SCREEN: True
DISPLAY: ":99"
steps:
- bash:
git fetch --tags
displayName: Fetch tags
- job: BuildDocs
displayName: "Build Documentation"
pool:
vmImage: ubuntu-latest
variables:
python.version: "3.13"
doc.build: True
PYVISTA_OFF_SCREEN: True
DISPLAY: ":99"
steps:
- bash: git fetch --tags
displayName: Fetch tags

- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH

- bash: .ci/azure/setup_env.sh
displayName: Setup discretize environment
- bash: .ci/azure/setup_env.sh
displayName: Setup discretize environment

- bash: |
source activate discretize-test
make -C docs html
displayName: 'Building HTML'
- bash: |
source activate discretize-test
make -C docs html
displayName: "Building HTML"

- bash: |
source activate discretize-test
make -C docs linkcheck
displayName: 'Checking Links'
- bash: |
source activate discretize-test
make -C docs linkcheck
displayName: "Checking Links"

- task: PublishPipelineArtifact@1
inputs:
targetPath: 'docs/_build/html'
artifact: 'html_docs'
parallel: true
- task: PublishPipelineArtifact@1
inputs:
targetPath: "docs/_build/html"
artifact: "html_docs"
parallel: true
47 changes: 23 additions & 24 deletions .ci/azure/sdist.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
jobs:
- job:
displayName: "Build source dist."
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.11"
- job:
displayName: "Build source dist."
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.11"

- bash:
git fetch --tags
displayName: Fetch tags
- bash: git fetch --tags
displayName: Fetch tags

- bash: |
set -o errexit
python -m pip install --upgrade pip
pip install build
displayName: Install source build tools.
- bash: |
set -o errexit
python -m pip install --upgrade pip
pip install build
displayName: Install source build tools.

- bash: |
python -m build --skip-dependency-check --sdist .
ls -la dist
displayName: Build Source
- bash: |
python -m build --skip-dependency-check --sdist .
ls -la dist
displayName: Build Source

- task: PublishPipelineArtifact@1
inputs:
targetPath: 'dist'
artifact: 'source_dist'
- task: PublishPipelineArtifact@1
inputs:
targetPath: "dist"
artifact: "source_dist"
3 changes: 3 additions & 0 deletions .ci/azure/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ fi
if [[ "$is_free_threaded" == "true" || "$is_bare" == "true" ]]; then
cp .ci/environment_test_bare.yml environment_test_with_pyversion.yml
echo " - python-freethreading="$PYTHON_VERSION >> environment_test_with_pyversion.yml
elif [[ "$do_doc" == "true" ]]; then
cp .ci/environment_docs.yml environment_test_with_pyversion.yml
echo " - python="$PYTHON_VERSION >> environment_test_with_pyversion.yml
else
cp .ci/environment_test.yml environment_test_with_pyversion.yml
echo " - python="$PYTHON_VERSION >> environment_test_with_pyversion.yml
Expand Down
19 changes: 16 additions & 3 deletions .ci/azure/style.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
jobs:
- job:
displayName: Check version consistency
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.13"
- bash: pip install pyyaml
displayName: "Install dependencies to run the checks"
- script: python .ci/check_version_sync.py
displayName: "Check versions"

- job:
displayName: Run style checks with Black
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.11"
versionSpec: "3.13"
- bash: .ci/install_style.sh
displayName: "Install dependencies to run the checks"
- script: black --check .
Expand All @@ -19,8 +32,8 @@ jobs:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.11"
versionSpec: "3.13"
- bash: .ci/install_style.sh
displayName: "Install dependencies to run the checks"
- script: flake8
displayName: "Run flake8"
displayName: "Run flake8"
Loading
Loading