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
24 changes: 10 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for tags

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.1.0
with:
version: "0.5.11"
enable-cache: true

- name: Create virtual environment
run: uv venv

- name: Install dependencies
run: uv sync --all-groups
run: uv sync --all-groups --locked

- name: Run tests
run: uv run pytest tests/ -v
Expand All @@ -49,24 +47,22 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for tags

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.1.0
with:
version: "0.5.11"
enable-cache: true

- name: Create virtual environment
run: uv venv

- name: Build distribution
run: uv run --with build python -m build
run: uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
29 changes: 16 additions & 13 deletions .github/workflows/sphinx-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for tags

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx-book-theme myst-parser numpydoc sphinx-copybutton sphinx-design
pip install -e .
# - name: Install dependencies
# run: uv sync --all-groups --locked

- name: Build documentation
run: |
sphinx-build -b html docs/source docs/_build/html
run: uv run --group docs --locked -- sphinx-build -a -b html docs/source docs/_build/html

- name: Upload build artifacts
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: sphinx-docs
path: docs/_build/html/
Expand All @@ -58,13 +61,13 @@ jobs:

steps:
- name: Download artifacts
uses: actions/download-artifact@v5
uses: actions/download-artifact@v8
with:
name: sphinx-docs
path: ./html

- name: Setup Pages
uses: actions/configure-pages@v5
uses: actions/configure-pages@v6

- name: Upload to Pages
uses: actions/upload-pages-artifact@v5
Expand Down
28 changes: 12 additions & 16 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,22 @@ jobs:
python-version: ['3.12', '3.13', '3.14']

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for tags --- IGNORE ---

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.1.0
with:
version: "0.5.11"
enable-cache: true

- name: Create virtual environment
run: uv venv

- name: Install dependencies
run: uv sync --all-groups
run: uv sync --all-groups --locked

- name: Lint with ruff
run: |
Expand All @@ -57,30 +55,28 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for tags

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Install uv
uses: astral-sh/setup-uv@v4
uses: astral-sh/setup-uv@v8.1.0
with:
version: "0.5.11"
enable-cache: true

- name: Create virtual environment
run: uv venv

- name: Build distribution
run: uv run --with build python -m build
run: uv build

- name: Check distribution with twine
run: uv run --with twine twine check dist/*

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: distributions-${{ matrix.os }}
path: dist/
11 changes: 0 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,12 @@ cython_debug/
gsolve.code-workspace
docs/generated/*
.vscode/settings.json
fake_data.ipynb
miller2020.ipynb
test_meter_correction.ipynb
test_miller copy.ipynb
test_miller.ipynb
test_orig_algorithm.ipynb
test1.ipynb
.xxxxxxdevcontainer/devcontainer.json
.xxxxxxdevcontainer/Dockerfile
.vscode/launch.json
/*.ipynb
examples/scintrex/CG-6_0680_DRFT_CAL2.dat
examples/scintrex/CG-6_0680_TEST1.dat
examples/scintrex/lynx_CG6_0041_20220719_Final_1HZ.DAT
examples/scintrex/lynx_CG6_0041_20220719_Final_FILT.DAT
run.bat
examples/surveys/terrain_corrections/wellington1m_lidar.tif
tuhua_data/*
paeroa_data/*
/*.dat
Expand Down
137 changes: 0 additions & 137 deletions .gitlab-ci.yml

This file was deleted.

19 changes: 0 additions & 19 deletions Dockerfile

This file was deleted.

Loading
Loading