Skip to content

Commit f641e3b

Browse files
authored
Feature docs (#14)
add docs, fsspec integration, RPC camera model & camera factories
1 parent 62fb83c commit f641e3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+13088
-5831
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: [leftfield-geospatial, dugalh] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: [leftfield-geospatial] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
11
name: Tests (conda-forge)
22

33
on:
4-
# push:
5-
# branches: [main, feature_pytest_click]
6-
# pull_request:
7-
# branches: [main]
4+
pull_request:
5+
branches: [main]
86
workflow_dispatch:
7+
schedule:
8+
- cron: '0 2 * * 1' # run weekly
99

1010
jobs:
1111
test:
1212
runs-on: ${{ matrix.os }}
1313
defaults:
1414
run:
15-
shell: bash -l {0}
15+
shell: bash -el {0}
1616
strategy:
1717
fail-fast: false
1818
matrix:
1919
os: [ macos-latest, ubuntu-latest, windows-latest ]
2020
python-version: ['3.9', '3.10', '3.11']
21+
2122
steps:
22-
- uses: actions/checkout@v3 # for the test data
23-
- uses: conda-incubator/setup-miniconda@v2
23+
- name: Check out repository
24+
uses: actions/checkout@v4
25+
26+
- name: Set up conda
27+
uses: conda-incubator/setup-miniconda@v3
2428
with:
2529
python-version: ${{ matrix.python-version }}
2630
channels: conda-forge
27-
channel-priority: true
28-
activate-environment: test
29-
miniforge-variant: Mambaforge
31+
channel-priority: strict
32+
activate-environment: orthority-test
33+
conda-solver: libmamba
34+
3035
- name: Install dependencies
36+
# Note that conda-forge OpenCV 4.9 package has *GL dependencies that are not satisfied by
37+
# GitHub's Ubuntu image, so 'opencv-python-headless' is installed with pip below.
3138
run: |
32-
mamba info
33-
mamba list
34-
mamba install -c conda-forge rasterio opencv click tqdm pyyaml pytest pytest-cov
35-
mamba list
39+
conda info
40+
conda install -c conda-forge rasterio click tqdm pyyaml fsspec requests aiohttp pytest pytest-cov
41+
pip install opencv-python-headless
42+
conda list
43+
3644
- name: Run unit tests
3745
run: |
38-
python -m pytest --cov=simple_ortho --cov-report=term-missing --cov-report=xml:coverage.xml ./tests
46+
python -m pytest --cov=orthority --cov-report=term-missing --cov-report=xml:coverage.xml ./tests

.github/workflows/run-unit-tests_pypi.yml

+19-8
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,55 @@ name: Tests
22

33
on:
44
push:
5-
branches: [main, feature_pytest_click]
5+
branches: [main]
66
pull_request:
77
branches: [main]
88
workflow_dispatch:
9+
schedule:
10+
- cron: '0 2 * * 1' # run weekly
911

1012
jobs:
1113
test:
1214
runs-on: ${{ matrix.os }}
1315
strategy:
1416
fail-fast: false
1517
matrix:
16-
python-version: ['3.9', '3.10', '3.11']
18+
python-version: ['3.8', '3.9', '3.10', '3.11']
1719
os: [ macos-latest, ubuntu-latest, windows-latest ]
20+
1821
steps:
19-
- uses: actions/checkout@v3
22+
- name: Check out repository
23+
uses: actions/checkout@v4
24+
2025
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2227
with:
2328
python-version: ${{ matrix.python-version }}
29+
cache: 'pip'
30+
2431
- name: Install dependencies
32+
# TODO: pip install -e .[tests] ?
2533
run: |
2634
python -m pip install --upgrade pip
2735
python -m pip install flake8 pytest pytest-cov
28-
python -m pip install rasterio opencv-python-headless click tqdm pyyaml
36+
python -m pip install rasterio opencv-python-headless click tqdm pyyaml fsspec requests aiohttp
2937
python -m pip list
38+
3039
- name: Lint with flake8
3140
run: |
3241
# stop the build if there are Python syntax errors or undefined names
3342
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3443
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3544
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
45+
3646
- name: Test with pytest
3747
timeout-minutes: 5
3848
run: |
39-
python -m pytest --cov=simple_ortho --cov-report=term-missing --cov-report=xml:coverage.xml ./tests
49+
python -m pytest --cov=orthority --cov-report=term-missing --cov-report=xml:coverage.xml ./tests
50+
4051
- name: Upload coverage
41-
uses: codecov/codecov-action@v3
52+
uses: codecov/codecov-action@v4
4253
with:
43-
fail_ci_if_error: true
54+
fail_ci_if_error: false
4455
files: ./coverage.xml
4556
token: ${{ secrets.CODECOV_TOKEN }}

.readthedocs.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
sphinx:
4+
configuration: docs/conf.py
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.11"
10+
11+
python:
12+
install:
13+
- requirements: docs/requirements.txt
14+
- method: pip
15+
path: .

0 commit comments

Comments
 (0)