Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting simple CI #7

Merged
merged 6 commits into from
Dec 12, 2023
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
64 changes: 64 additions & 0 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow
# https://docs.github.com/fr/actions/using-workflows/workflow-syntax-for-github-actions#exemple--inclusion-de-chemins-dacc%C3%A8s

name: Full CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
# Concurrency : auto-cancel "old" jobs ie when pushing again
# https://docs.github.com/fr/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
build-python:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Do not stop when any job fails
matrix:
python-version: [ "3.10", "3.11" ]
os: [ubuntu-latest]
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
continue-on-error: false # https://ncorti.com/blog/howto-github-actions-build-matrix
steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
cache: false # Removing cache, as it's not worth for now (around 3min to restore + time to save vs 3 min to clean install)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok 👍


- name: Install dependencies
run: pdm install -G :all

- name: Ensure opencv contrib is working
run: pdm run pip install --force-reinstall opencv-contrib-python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? just curious


- name: Verify linting, format
run: pdm check-format

- name: Test code
run: pdm test

- name: Test notebooks
run: pdm check-notebook

- name: Build
run: pdm build

- name: "Python client: archive built artifacts"
if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' }}
uses: actions/upload-artifact@v3
with:
path: dist/*whl
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.history
examples/*.py
.pdm-python
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
Binary file added examples/300W/sample/indoor_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions examples/300W/sample/indoor_001.pts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
version: 1
n_points: 68
{
446.000 91.000
449.459 119.344
450.957 150.614
460.552 176.986
471.486 202.157
488.087 226.842
506.016 246.438
524.662 263.865
553.315 271.435
578.732 266.260
599.361 248.966
615.947 220.651
627.439 197.999
635.375 179.064
642.063 156.371
647.302 124.753
646.518 92.944
470.271 117.870
486.218 109.415
503.097 114.454
519.714 120.090
533.680 127.609
571.937 123.590
585.702 117.155
602.344 109.070
620.077 103.951
633.964 111.236
554.931 145.072
554.589 161.106
554.658 177.570
554.777 194.295
532.717 197.930
543.637 202.841
555.652 205.483
565.441 202.069
576.368 197.061
487.474 136.436
499.184 132.337
513.781 133.589
527.594 143.047
513.422 144.769
499.117 144.737
579.876 140.815
590.901 130.008
605.648 128.376
618.343 132.671
606.771 140.525
593.466 141.419
519.040 229.040
536.292 221.978
547.001 221.192
557.161 224.381
568.172 219.826
579.144 222.233
589.098 224.410
581.071 239.804
570.103 251.962
558.241 254.844
547.661 254.621
534.085 247.772
524.758 230.477
547.684 231.663
557.304 230.805
568.172 229.159
585.417 225.992
569.211 237.777
557.473 240.542
547.989 240.014
}
Binary file added examples/300W/sample/indoor_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions examples/300W/sample/indoor_002.pts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
version: 1
n_points: 68
{
199.000 212.233
203.725 263.996
224.690 318.393
233.201 364.729
251.869 408.246
276.471 442.344
311.359 467.734
349.341 485.110
387.377 486.918
424.566 475.095
452.822 448.130
476.290 411.053
499.464 371.749
512.990 322.219
510.210 279.340
514.314 235.664
517.827 187.195
225.265 232.970
247.848 212.523
279.877 215.963
307.753 229.064
336.856 233.858
391.148 229.924
407.056 217.564
433.362 199.241
466.460 188.209
488.588 198.539
354.243 247.785
356.765 275.523
359.287 304.838
362.124 335.414
334.197 346.774
349.975 351.248
364.841 353.798
380.239 346.845
399.494 341.091
252.798 242.295
272.849 235.539
294.151 238.220
319.131 252.743
293.741 253.661
271.540 253.832
394.063 242.192
417.791 224.235
438.037 219.738
455.743 224.143
441.470 236.972
418.746 239.519
313.186 404.069
336.692 386.424
359.051 379.086
375.567 383.671
392.129 376.444
416.257 379.313
439.094 384.007
416.581 400.983
396.342 411.696
377.520 414.815
359.588 414.236
337.594 410.399
321.718 399.457
358.614 395.314
376.546 397.684
393.565 391.270
426.867 386.276
393.565 391.270
376.546 397.684
358.614 395.314
}
Binary file added examples/300W/sample/indoor_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions examples/300W/sample/indoor_003.pts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
version: 1
n_points: 68
{
366.000 322.304
370.151 383.263
373.595 442.898
393.941 500.001
422.982 556.418
455.501 597.563
490.575 634.948
534.349 673.942
595.115 691.292
655.255 679.731
709.887 653.205
765.795 624.353
819.667 583.971
845.648 532.002
855.081 456.749
856.081 391.427
855.025 332.859
379.361 275.258
398.921 242.918
429.940 228.820
463.894 228.432
491.232 245.398
632.562 244.137
667.299 228.654
719.315 224.000
773.914 232.826
799.814 260.936
560.579 306.602
560.996 345.650
559.286 389.983
558.723 438.066
515.703 460.963
539.568 470.666
565.347 471.994
591.025 464.419
623.380 457.119
406.054 300.593
441.385 286.570
477.500 286.169
513.268 309.824
478.508 313.023
438.994 314.994
633.086 310.038
674.883 284.394
711.523 284.015
742.841 294.674
712.291 309.764
674.323 309.668
470.084 507.455
515.313 507.698
545.824 507.907
573.404 512.947
608.061 506.430
655.146 506.488
716.501 502.169
658.130 548.464
612.680 569.237
573.597 575.725
544.713 572.797
511.686 549.442
487.582 507.762
544.861 534.522
573.331 532.112
610.678 532.150
703.890 509.124
610.678 532.150
573.363 539.586
544.861 534.522
}
Binary file added examples/300W/sample/indoor_004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions examples/300W/sample/indoor_004.pts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
version: 1
n_points: 68
{
307.000 263.693
312.176 292.678
321.195 329.394
336.267 360.973
360.035 386.348
384.255 403.627
411.694 419.188
439.950 428.394
469.504 421.987
487.248 403.666
499.808 376.612
510.334 355.031
518.654 329.379
522.309 295.677
522.869 265.726
522.097 239.585
519.572 213.663
327.106 205.790
340.499 194.745
363.059 192.600
385.754 193.937
406.840 201.769
442.706 191.206
455.234 177.941
470.089 168.358
488.420 161.000
502.017 169.045
430.719 221.517
437.023 242.810
443.609 263.907
450.233 285.171
424.258 307.983
438.414 311.727
452.532 312.313
462.849 306.417
468.991 297.819
347.375 239.146
360.301 226.052
378.468 224.390
395.479 235.581
379.504 240.345
362.292 244.228
455.166 222.228
467.672 206.425
484.155 201.921
494.115 206.262
485.544 219.722
469.439 222.910
407.059 357.418
420.759 341.288
437.895 330.661
452.041 332.702
464.259 328.092
478.553 333.009
489.597 345.566
483.780 366.591
470.460 380.111
458.288 384.544
443.909 385.383
426.493 380.358
412.386 356.858
438.923 343.343
453.770 341.222
465.102 340.036
482.819 346.252
468.148 361.920
455.516 367.069
442.256 366.952
}
Binary file added examples/300W/sample/indoor_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading