Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
c4b2750
Replace SimPEG for simpeg in API reference (#1446)
santisoler May 10, 2024
c12f51e
Replace SimPEG for simpeg in getting started pages (#1447)
santisoler May 10, 2024
7dec0be
Check inputs for converting 3d surveys to 2d lines (#1392)
santisoler May 13, 2024
6f35ed2
Always use Pydata Sphinx theme for building docs (#1445)
santisoler May 15, 2024
e13a25f
Simplify interface of UniformBackgroundField (#1421)
santisoler May 15, 2024
80e3b18
Ensure the queue's are joined when the meta simulation is joined. (#1…
jcapriot May 15, 2024
50306ee
Add maintenance issue template (#1468)
santisoler May 16, 2024
dcec9d5
Add instructions to update the environment (#1462)
santisoler May 17, 2024
67c0416
Stop recommending mamba for installing simpeg (#1463)
santisoler May 17, 2024
712cfda
Fix bug on arguments of beta estimator directives (#1460)
santisoler May 22, 2024
bc9a424
Improve interface for DC Dipole source (#1393)
santisoler May 22, 2024
079d870
Use Numpy random number generator in codebase (#1394)
santisoler May 22, 2024
5ed93bf
Extend docstrings for FDEM and TDEM fields and 3D simulations (#1414)
dccowan May 30, 2024
5d489f3
Magnetic simulation with Choclo as engine (#1321)
santisoler May 31, 2024
cbd200b
Fix typos in EM docstrings (#1473)
santisoler May 31, 2024
dd7cc94
Fix call to private method in GaussianMixtureWithPrior (#1476)
santisoler Jun 5, 2024
ae63c36
Add version switcher to Sphinx docs (#1428)
santisoler Jun 5, 2024
23d8cd3
Use random seed on synthetic data in mag tests (#1457)
santisoler Jun 6, 2024
f6b8035
Fix links to source code in documentation pages (#1444)
santisoler Jun 6, 2024
30fadd3
Fix script for new deployment of docs (#1478)
santisoler Jun 6, 2024
772429a
Print SimPEG version in the inversion log (#1477)
santisoler Jun 6, 2024
caa60b7
Use Numpy rng in FDEM tests (#1449)
santisoler Jun 7, 2024
efad8b0
Add `random_seed` argument to objective fun's derivative tests (#1448)
santisoler Jun 7, 2024
c31da25
Add `random_seed` to the `test` method of maps (#1465)
santisoler Jun 10, 2024
91d1f57
Use Numpy rng in TDEM tests (#1452)
santisoler Jun 10, 2024
5575c5e
Use random seed in missed objective function tests (#1483)
santisoler Jun 10, 2024
00d3371
Fix contour colors in gravity plot in User Guide (#1486)
williamjsdavis Jun 14, 2024
0782567
Hide type hints from signatures in documentation pages (#1471)
santisoler Jun 14, 2024
77edcc8
Reorganize the maps submodule (#1480)
santisoler Jun 15, 2024
c37536c
Pyproject.toml (#1482)
jcapriot Jun 17, 2024
eee9ce4
Use Numpy rng in static EM tests (#1451)
santisoler Jun 17, 2024
3eb16c0
Split Azure Pipelines configuration into multiple files (#1481)
santisoler Jun 18, 2024
83183b4
Ignore `survey_type` argument in DC and SIP surveys (#1458)
santisoler Jun 20, 2024
637815a
Update deployment of docs to simpeg-docs (#1490)
santisoler Jun 21, 2024
e322585
Change cron time to test new deployment of docs (#1492)
santisoler Jun 21, 2024
31fb6fe
Revert "Change cron time to test new deployment of docs (#1492)" (#1494)
santisoler Jun 21, 2024
f23c884
Fix F821 flake error: undefined variable (#1487)
santisoler Jun 24, 2024
fb10cda
Use Numpy rng in viscous remanent mag tests (#1453)
santisoler Jun 24, 2024
7f86584
Use Numpy rng in NSEM tests (#1450)
santisoler Jun 24, 2024
74ce4d7
Unwrap lines in release checklist (#1498)
santisoler Jun 25, 2024
95d6204
Improve instructions to update versions.json (#1500)
santisoler Jun 26, 2024
cf6034c
Add release notes for v0.22.0 (#1499)
santisoler Jun 26, 2024
6269fe6
Configure version warning banner in Sphinx (#1501)
santisoler Jun 28, 2024
0f5b437
Improve imports in natural source utils (#1503)
santisoler Jul 2, 2024
fc83aa7
Add release notes for v0.22.1 (#1508)
santisoler Jul 5, 2024
83bbbf8
Deploy to TestPyPI only on nightly builds (#1509)
santisoler Jul 5, 2024
c699a84
Add latest merged PR to release notes for v0.22.1 (#1510)
santisoler Jul 5, 2024
95a1232
Minor fixes to disclaimer in `pgi_utils.py` (#1512)
prisae Aug 20, 2024
43325c4
Fix misuse of the `requires` decorator in `code_utils.py` (#1513)
prisae Aug 20, 2024
dc281c2
Use lowercase simpeg in a few missing docstrings (#1519)
santisoler Aug 21, 2024
37d69cf
Pass `rtol` to SciPy solvers for SciPy>=1.12 (#1517)
prisae Aug 22, 2024
5e4b583
Make `pandas` & `scikit-learn` optional dependencies (#1514)
prisae Aug 23, 2024
7bb6088
Dask races (#1469)
jcapriot Aug 31, 2024
a95c421
Fix validate_ndarray_with_shape (#1523)
prisae Aug 31, 2024
c6ca137
Irls refactor (#1349)
domfournier Sep 2, 2024
291ca6c
Fix bug in GMM's `_check_weights` (#1526)
santisoler Sep 5, 2024
1245a24
Add release notes after v0.22.2 (#1533)
santisoler Sep 11, 2024
4eef48c
Minimum python version update (#1522)
jcapriot Sep 12, 2024
0164fac
Replace `ind_active` for `active_cells` in pf simulations (#1520)
santisoler Sep 18, 2024
048ef80
Move push to codecov to its own stage (#1493)
santisoler Sep 18, 2024
060993c
Minor fix in deprecation notice in docstrings (#1535)
santisoler Sep 19, 2024
437fa39
Replace `indActive` and `actInd` for `active_cells` in maps (#1534)
santisoler Sep 20, 2024
2bfa4d4
Update tests and examples to use the new `UpdateIRLS` (#1472)
domfournier Sep 25, 2024
282ddbb
Replace `indActive` in VRM simulations for `active_cells` (#1536)
santisoler Oct 4, 2024
95a9617
Test assigned values when passing deprecated args (#1544)
santisoler Oct 7, 2024
4ca99a7
Use random seed when using `make_synthetic_data` in tests (#1545)
santisoler Oct 7, 2024
9a07f0a
Minor improvements to `UpdateIRLS` class (#1529)
santisoler Oct 8, 2024
492f940
Replace `seed` for `random_seed` in directives (#1538)
santisoler Oct 8, 2024
5b53fae
Minor fixes to magnetic examples (#1547)
santisoler Oct 10, 2024
56bebdb
Support magnetic gradiometry using Choclo as engine (#1543)
santisoler Oct 10, 2024
56ce895
Update usage of `random_seed` in one example (#1549)
santisoler Oct 11, 2024
5b1bd39
Replace `seed` for `random_seed` in `model_builder` (#1548)
santisoler Oct 11, 2024
ca6740d
Replace old args for `active_cells` in EM static functions (#1550)
santisoler Oct 17, 2024
1a96710
Implement gravity equivalent sources with Choclo as engine (#1527)
santisoler Oct 18, 2024
702389e
Implement tmi derivatives with Choclo in magnetic simulation (#1553)
santisoler Oct 22, 2024
c88de7f
Implement magnetic eq sources with Choclo (#1552)
santisoler Oct 23, 2024
46b9001
Update links in PR template (#1554)
santisoler Oct 23, 2024
33c3dbf
Default solver (#1511)
jcapriot Oct 23, 2024
9d14515
Fixes for most recent geoana 0.7 (#1557)
jcapriot Oct 25, 2024
aec8889
Numpy2.0 and discretize 0.11.0 updates (#1558)
jcapriot Oct 25, 2024
695291c
Add missing seeds (#1560)
jcapriot Oct 26, 2024
7dbfc3a
Make use of meshes' `cell_bounds` property (#1559)
santisoler Oct 27, 2024
7538656
Fix docstring of ``SmoothnessFullGradient`` (#1562)
santisoler Oct 29, 2024
b801459
Fix math in docstring of eigenvalue_by_power_iteration (#1564)
santisoler Oct 29, 2024
6c5f7d5
Only warn about default solver when set in simulations (#1565)
santisoler Oct 30, 2024
78b5b5e
Augmented receivers for airborne NSEM (#1454)
dccowan Nov 1, 2024
30b3b42
Try uploading all the coverage files at once. (#1569)
jcapriot Nov 2, 2024
e210404
Re-implement distance weighting and add a strategy comparison (#1310)
thibaut-kobold Nov 2, 2024
a86146f
Remove empymod dependency (#1571)
jcapriot Nov 3, 2024
54b9933
Changlog for v0.23.0 (#1567)
santisoler Nov 3, 2024
f70741a
Add v0.23.0 to the version switcher (#1573)
santisoler Nov 3, 2024
8c04621
Fix date in release notes (#1574)
santisoler Nov 3, 2024
60e0c3a
Bugfix for TDEM magnetic dipole sources (#1572)
lheagy Nov 4, 2024
c6036df
Fix ubcstyle printout (#1577)
jcapriot Nov 13, 2024
50b79e2
Add docstring to `n_processes` in potential field simulations (#1578)
santisoler Nov 13, 2024
1d1d01c
Move simulation solver from base simulation to PDE simulation (#1582)
jcapriot Nov 19, 2024
e74bc52
Update and fix instructions to build the docs (#1583)
santisoler Nov 20, 2024
b6c84cc
Change location of `mesh` attribute (#1585)
jcapriot Nov 25, 2024
84719dc
Speed up most commonly used deriv/deriv2 in PGI (#1587)
johnweis0480 Nov 25, 2024
54db0a8
Improve dot products in `PGIsmallness.__call__` and update docstring …
johnweis0480 Nov 26, 2024
da9e284
Rename delete on model update (#1589)
jcapriot Dec 4, 2024
f697d24
update PGI Example plotting script for deprecated collections (#1595)
jcapriot Dec 17, 2024
6dd8800
Coverage upload on failed test (#1596)
jcapriot Dec 19, 2024
717f059
Use zizmor to lint GitHub Actions workflows (#1592)
santisoler Dec 20, 2024
d6819fa
Update installation instructions in docs (#1597)
santisoler Dec 20, 2024
c00b102
Set `permissions` in Actions to avoid zizmor's `excessive-permissions…
santisoler Jan 30, 2025
2e36896
Fix for removed quadrature function on new scipy versions (#1603)
jcapriot Jan 30, 2025
a918b45
Install zizmor through conda-forge in `environment.yml` (#1600)
santisoler Mar 6, 2025
368afb3
Raise errors if dpred in `BaseDataMisfit` has nans (#1615)
santisoler Mar 6, 2025
05f9f01
Update Black's Python versions in `pyproject.toml` (#1620)
santisoler Mar 6, 2025
bb8a517
Use shell rendering in Bug report template (#1612)
santisoler Mar 6, 2025
392959d
Merge Getting Started and Examples into User Guide (#1619)
santisoler Mar 7, 2025
55ccf52
Fix usage of "bug" label in bug report template (#1624)
santisoler Mar 10, 2025
5ae5e7b
Fix redirects links in docs (#1623)
santisoler Mar 10, 2025
b2e0006
Fix bug on `getJ` of gravity simulation (#1621)
santisoler Mar 10, 2025
985593f
Fix redirect to user guide index page (#1627)
santisoler Mar 11, 2025
c05d616
Move indexing of flat arrays to Survey classes (#1616)
santisoler Mar 18, 2025
d84a050
Replace Data indexing for Survey slicing where needed (#1632)
santisoler Mar 20, 2025
1148ef1
Implement `G` matrix as `LinearOperator` in gravity simulation (#1622)
santisoler Mar 21, 2025
33c4221
Set maximum number of iterations in eq sources tests (#1636)
santisoler Mar 28, 2025
11b407e
Em1d multiple rx locs (#1637)
jcapriot Mar 30, 2025
d2c49ff
Fix definition of model in gravity J-related tests (#1643)
santisoler Apr 14, 2025
b1804b8
Improve docstring of dip_azimuth2cartesian (#1642)
santisoler Apr 14, 2025
46fd664
Improve variable names in gravity test (#1641)
santisoler Apr 14, 2025
9026730
Test transpose of gravity getJ as linear operator (#1644)
santisoler Apr 14, 2025
f2440e6
Configure zizmor to pin reviewdog actions with tags (#1650)
santisoler Apr 22, 2025
1a0d3fb
Deprecate `components` in potential field surveys (#1633)
santisoler Apr 22, 2025
f852c69
Fix bug on magnetic simulation `nD` property (#1646)
santisoler Apr 23, 2025
1dee477
Make pytest error on random seeded test (#1598)
jcapriot Apr 23, 2025
5b7b891
Add support for potential fields survey indexing (#1635)
jcapriot Apr 23, 2025
e61d9b2
Implement magnetic G as linear operator (#1634)
santisoler Apr 23, 2025
8f5fe30
Use Numpy's RNG in tests for depth weighting (#1570)
santisoler Apr 24, 2025
725a09b
Raise NotImplementedError on getJ for NSEM 1D simulations (#1653)
santisoler Apr 24, 2025
24bf81e
Set the model when calling `getJ` in DC and SIP simulations (#1361)
lheagy Apr 24, 2025
deda172
Fix `getJ` method in TDEM and FDEM 1D simulations (#1638)
ghwilliams Apr 24, 2025
249e69a
Add release notes for v0.24.0 (#1655)
santisoler Apr 25, 2025
255d2fb
Update docstring descriptions for gravity gradient component guv (#1665)
williamjsdavis May 14, 2025
50eeac8
Clean up Numba functions for potential field simulations (#1663)
santisoler May 15, 2025
55cfbfa
Make directives submodules private (#1667)
santisoler May 15, 2025
55e4252
Ensure misfit is purely real valued (#1524)
prisae May 16, 2025
0a4cf76
Add key navigation to docs (#1668)
prisae May 16, 2025
f503c0e
Add missing map classes to the API reference (#1672)
santisoler May 23, 2025
1e205f8
Replace sklearn deprecated method for `validate_data` function (#1673)
santisoler May 26, 2025
b8a1548
Remove `BaseSurvey.counter` property (#1640)
santisoler May 26, 2025
3d6bb9d
Fixes sign error in 1D field calculation. (#1662)
jcapriot May 28, 2025
61de6d2
Allow use of `J` as `LinearOperator` in mag equivalent layers (#1676)
santisoler Jun 2, 2025
8f74379
Fix beta cooling in `UpdateIRLS` directive (#1659)
jcapriot Jun 3, 2025
ce7fa03
Allow use of `J` as `LinearOperator` in gravity equivalent layers (#1…
santisoler Jun 4, 2025
64f7e56
Improve admonitions in gravity simulation (#1677)
santisoler Jun 4, 2025
285e0f0
Have an option to take a step when the Linesearch breaks (#1581)
lheagy Jun 12, 2025
e44476b
Fix bug in phase for recursive 1d NSEM simulation (#1679)
dccowan Jun 12, 2025
6146a5e
Use conda-forge as only channel in Azure pipelines (#1688)
santisoler Jul 18, 2025
4a94b2c
Expose solver utility functions in `simpeg.utils` (#1678)
santisoler Jul 18, 2025
cba34e9
Use logging while setting default solver in PDE simulations (#1670)
santisoler Jul 23, 2025
3aed38d
Use `Impedance` and `Tipper` in examples and tests (#1690)
santisoler Aug 12, 2025
f191fc7
Fix bug on `Impedance.eval` when orientation is "xx" or "yy" (#1692)
dccowan Aug 13, 2025
d58b57f
Remove deprecated objects missed in v0.24.0 (#1658)
jcapriot Aug 21, 2025
88b5f57
Update magnetic simulation using differential formulation (#1682)
johnweis0480 Sep 5, 2025
22f8353
Standardize output directives and make them more reliable (#1657)
jcapriot Sep 12, 2025
5e87797
Make tests error on implicit complex to real (#1696)
jcapriot Sep 12, 2025
fbea6db
Avoids calculating unused values for boundary conditions on DC 2D sim…
jcapriot Sep 13, 2025
a3d45aa
Add How to Guide page on how to choose a solver (#1695)
santisoler Sep 13, 2025
e1af3e8
Make Logger a bit quieter when running pytest (#1697)
jcapriot Sep 15, 2025
0fe4df8
CG Minimizer Updates (#1656)
jcapriot Sep 18, 2025
256406f
Add top level descriptions to missing to functions (#1702)
jcapriot Sep 18, 2025
f04ba47
Update meeting times in README.rst (#1700)
santisoler Sep 22, 2025
b6b90cf
Add `_faceDiv` attribute to FDEM H `Fields` (#1346)
lheagy Sep 23, 2025
f0086d1
Improve landing page of docs (#1701)
santisoler Sep 26, 2025
42a5db9
Add How to Guide page on moving mesh to survey area (#1699)
santisoler Sep 26, 2025
3fc8383
Remove gravity and magnetic tutorials (#1704)
santisoler Sep 29, 2025
15bd44b
Minor fixes to docs of `UpdateSensitivityWeights` (#1705)
santisoler Oct 2, 2025
3cc6605
Update iteration print out (#1626)
jcapriot Oct 2, 2025
f5e5be5
Fix magnetic dipole source for for HJ formulation (#1575)
lheagy Oct 3, 2025
1ccc373
Drop support for Python 3.10 (#1708)
santisoler Oct 10, 2025
1218acd
Add documentation page for version compatibility (#1707)
santisoler Oct 10, 2025
80be606
Remove DC resistivity tutorials (#1710)
santisoler Oct 10, 2025
ed40b81
Improve dipole source tests (#1711)
santisoler Oct 14, 2025
23a91db
Update deprecated calls in examples, tutorials, and tests to inexact …
jcapriot Oct 14, 2025
248dd3f
Make `ComplexMap.deriv` to return a sparse diagonal matrix (#1686)
lheagy Oct 15, 2025
818451c
Standardize signature of mappings' `deriv` method (#1407)
YingHuuu Oct 15, 2025
7db3f9c
Update how mappings are applied in regularizations (#1605)
santisoler Oct 15, 2025
1d73907
Simple fix for pymatsolver 0.4.0 (#1717)
jcapriot Oct 16, 2025
6e3ddb0
Fix bug with duplicated current in `LineCurrent.Mejs` (#1718)
santisoler Oct 17, 2025
5c17fd2
Minor fixes to LaTeX equations in regularizations (#1720)
santisoler Oct 17, 2025
656f31c
Fix return of `get_indices_block` (#1713)
santisoler Oct 17, 2025
1845349
Remove deprecated bits marked for removal in v0.25.0 (#1719)
santisoler Oct 17, 2025
45393c3
Add shift to discrete topography for NSEM (#1683)
dccowan Oct 20, 2025
70c7b2a
Deprecate unused arguments in `drape_electrodes_on_topography` (#1723)
santisoler Oct 20, 2025
4378511
Fix LaTeX equations in `Simulation3DDifferential` (#1726)
santisoler Oct 20, 2025
45c3bc9
Implement a closed loop as a TDEM source (#1651)
lheagy Oct 21, 2025
625bad3
Allow for specifying ramp start and ramp end in `RampOffWaveform` (#1…
jcapriot Oct 22, 2025
5f0e7c7
Add changelog for SimPEG v0.25.0 (#1725)
santisoler Oct 23, 2025
5f060ec
Add latest release notes to index (#1728)
santisoler Oct 23, 2025
9a8c46e
Fix argument name in `UpdateSensitivityWeights` docs (#1737)
santisoler Nov 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
72 changes: 0 additions & 72 deletions .azure-pipelines/matrix.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .ci/azure/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
jobs:
- job:
pool:
vmImage: "ubuntu-latest"
displayName: Upload to Codecov
steps:
# Checkout simpeg repo. Codecov needs the repo in the file system for
# uploading coverage reports.
- checkout: self
displayName: "Checkout repository"

- task: DownloadPipelineArtifact@2
inputs:
patterns: "coverage-*/coverage-*.xml"
displayName: "Download coverage artifacts"

- bash: ls -la $(Pipeline.Workspace)/coverage-*/coverage-*.xml
displayName: "List downloaded coverage artifacts"

- bash: |
cp $(Pipeline.Workspace)/coverage-*/coverage-*.xml .
ls -la
displayName: "Copy coverage files"

- bash: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
displayName: "Install codecov cli"

- bash: |
cc_file_args=()
for report in coverage-*.xml; do
cc_file_args+=( " --file " "$report" )
done
./codecov --verbose upload-process "$cc_file_args"
displayName: "Upload coverage to codecov.io"
69 changes: 69 additions & 0 deletions .ci/azure/deploy-dev-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/usr/bin/env bash

# Push built docs to dev branch in simpeg-docs repository

set -ex #echo on and exit if any line fails

# ---------------------------
# Push new docs to dev branch
# ---------------------------
# Capture hash of last commit in simpeg
commit=$(git rev-parse --short HEAD)

# Clone the repo where we store the documentation (dev branch)
git clone -q --branch dev --depth 1 "https://${GH_TOKEN}@github.com/simpeg/simpeg-docs.git"
cd simpeg-docs

# Remove all files (but .git folder)
find . -not -path "./.git/*" -not -path "./.git" -delete

# Copy the built docs to the root of the repo
cp -r "$BUILD_SOURCESDIRECTORY"/docs/_build/html/. -t .

# Add new files
git add .

# List files in working directory and show git status
ls -la
git status

# Commit the new docs. Amend to avoid having a very large history.
message="Azure CI deploy dev from ${commit}"
echo -e "\nAmending last commit:"
git commit --amend --reset-author -m "$message"

# Make the push quiet just in case there is anything that could
# leak sensitive information.
echo -e "\nPushing changes to simpeg/simpeg-docs (dev branch)."
git push -fq origin dev 2>&1 >/dev/null
echo -e "\nFinished uploading doc files."

# ----------------
# Update submodule
# ----------------
# Need to fetch the gh-pages branch first (because we clone with shallow depth)
git fetch --depth 1 origin gh-pages:gh-pages

# Switch to the gh-pages branch
git switch gh-pages

# Update the dev submodule
git submodule update --init --recursive --remote dev

# Add updated submodule
git add dev

# List files in working directory and show git status
ls -la
git status

# Commit changes
message="Azure CI update dev submodule from ${commit}"
echo -e "\nMaking a new commit:"
git commit -m "$message"

# Make the push quiet just in case there is anything that could
# leak sensitive information.
echo -e "\nPushing changes to simpeg/simpeg-docs (gh-pages branch)."
git push -q origin gh-pages 2>&1 >/dev/null
echo -e "\nFinished updating submodule dev."
48 changes: 48 additions & 0 deletions .ci/azure/deploy-release-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/env bash

# Push built docs to gh-pages branch in simpeg-docs repository

set -ex #echo on and exit if any line fails

# Capture simpeg version
version=$(git tag --points-at HEAD)
if [[ -z $version ]]; then
echo "Version could not be obtained from tag. Exiting."
exit 1
fi

# Capture hash of last commit in simpeg
commit=$(git rev-parse --short HEAD)

# Clone the repo where we store the documentation
git clone -q --branch gh-pages --depth 1 "https://${GH_TOKEN}@github.com/simpeg/simpeg-docs.git"
cd simpeg-docs

# Move the built docs to a new dev folder
cp -r "$BUILD_SOURCESDIRECTORY/docs/_build/html" "$version"
cp "$BUILD_SOURCESDIRECTORY/docs/README.md" .

# Add .nojekyll if missing
touch .nojekyll

# Update latest symlink
rm -f latest
ln -s "$version" latest

# Add new docs and relevant files
git add "$version" README.md .nojekyll latest

# List files in working directory and show git status
ls -la
git status

# Commit the new docs.
message="Azure CI deploy ${version} from ${commit}"
echo -e "\nMaking a new commit:"
git commit -m "$message"

# Make the push quiet just in case there is anything that could
# leak sensitive information.
echo -e "\nPushing changes to simpeg/simpeg-docs."
git push -fq origin gh-pages 2>&1 >/dev/null
echo -e "\nFinished uploading generated files."
112 changes: 112 additions & 0 deletions .ci/azure/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
jobs:
# Build docs only on scheduled jobs or on a relase
- job: BuildDocs
condition: or(eq(variables['Build.Reason'], 'Schedule'), startsWith(variables['build.sourceBranch'], 'refs/tags/'))
pool:
vmImage: ubuntu-latest
variables:
python.version: "3.11"
timeoutInMinutes: 240
steps:
# Checkout simpeg repo.
# Sync tags and disable shallow depth to get the SimPEG version.
- checkout: self
fetchDepth: 0
fetchTags: true
displayName: Checkout repository (including tags)

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

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

- bash: |
source activate simpeg-test
make -C docs html
displayName: Building documentation

- task: PublishPipelineArtifact@1
inputs:
targetPath: $(Build.SourcesDirectory)/docs/_build/html
artifactName: built-docs
displayName: "Upload docs as artifact"

- job: DeployRelease
dependsOn: BuildDocs
condition: startsWith(variables['build.sourceBranch'], 'refs/tags/')
pool:
vmImage: ubuntu-latest
timeoutInMinutes: 240
steps:
# Checkout simpeg repo.
# Sync tags and disable shallow depth to get the SimPEG version.
- checkout: self
fetchDepth: 0
fetchTags: true
displayName: Checkout repository (including tags)

- 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: |
mkdir -p docs/_build/html
displayName: "Create directory for built docs"

- task: DownloadPipelineArtifact@2
inputs:
artifact: built-docs
targetPath: docs/_build/html
displayName: "Download docs artifact"

# Upload release build of the docs to gh-pages branch in simpeg/simpeg-docs
- bash: .ci/azure/deploy-release-docs.sh
displayName: Push documentation to simpeg-docs
env:
GH_TOKEN: $(gh.token)

- job: DeployDev
dependsOn: BuildDocs
condition: eq(variables['Build.Reason'], 'Schedule') # run only scheduled triggers
pool:
vmImage: ubuntu-latest
timeoutInMinutes: 240
steps:
# Checkout simpeg repo.
# Sync tags and disable shallow depth to get the SimPEG version.
- checkout: self
fetchDepth: 0
fetchTags: true
displayName: Checkout repository (including tags)

- 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: |
mkdir -p docs/_build/html
displayName: "Create directory for built docs"

- task: DownloadPipelineArtifact@2
inputs:
artifact: built-docs
targetPath: docs/_build/html
displayName: "Download docs artifact"

# Upload dev build of the docs to a dev branch in simpeg/simpeg-docs
# and update submodule in the gh-pages branch
- bash: .ci/azure/deploy-dev-docs.sh
displayName: Push documentation to simpeg-docs (dev branch)
env:
GH_TOKEN: $(gh.token)
Loading