Skip to content

Set minimum to Python 3.10 (and general CI Maintenance)#368

Merged
jcapriot merged 1 commit intosimpeg:mainfrom
jcapriot:python3.10
Aug 31, 2024
Merged

Set minimum to Python 3.10 (and general CI Maintenance)#368
jcapriot merged 1 commit intosimpeg:mainfrom
jcapriot:python3.10

Conversation

@jcapriot
Copy link
Member

@jcapriot jcapriot commented Aug 31, 2024

Updates (and streamlines) the azure pipelines workflows.

  • Separate the pytests and doc build test (Cache the doc build)
  • Then, build all wheels and source dists. (Cache these as well)
  • Finally download the caches and upload those.

It also pulls the git-tag making sure the doc builds, wheels, and source builds get the correct version information.

Plus, just a bit of general maintenance on the code base:

  • (Builds against numpy 2.0.0 (which is ABI compatible with numpy 1.2x)
  • Some small updates for VTK write outs
  • Updates some tests to use pytest's tmp_path fixture.
  • Uses pooch to download and unpack data.
  • Updates the black and flake8 versions

I know it's one commit, but it was squashed!

@codecov
Copy link

codecov bot commented Aug 31, 2024

Codecov Report

Attention: Patch coverage is 69.41176% with 26 lines in your changes missing coverage. Please review.

Project coverage is 85.76%. Comparing base (300b64a) to head (93d2a67).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
examples/plot_pyvista_laguna.py 0.00% 13 Missing ⚠️
examples/plot_slicer_demo.py 0.00% 7 Missing ⚠️
tests/boundaries/test_tensor_boundary_poisson.py 50.00% 4 Missing ⚠️
discretize/base/base_mesh.py 0.00% 0 Missing and 1 partial ⚠️
tests/base/test_tensor_io.py 96.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #368      +/-   ##
==========================================
+ Coverage   85.12%   85.76%   +0.64%     
==========================================
  Files          36       88      +52     
  Lines        8408    18654   +10246     
  Branches        0     2959    +2959     
==========================================
+ Hits         7157    15998    +8841     
- Misses       1251     1996     +745     
- Partials        0      660     +660     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

style updates
move build wheels to the start

rename azure files and move wheel building to a template.

updates

expand variables

not matrix

don't need to expand this one?

fix environment name

add default coverage info

a few updates

a bit more configuration

trigger on all branches (for now).

match doc configure in simpeg

try with these.

add osx to new test script

maybe this pool?

more attempts.

try again

refer to variables?

possibly this?

indentation

test for windows

try setting path this way?

not?

more things

missed a comma

expand the variable?

Try this

commas...

use the variable

skip style for now

single quotes...

prefer vsenv on azure

update setup

move command

activate test environment

try some more

remove extras

a bit on wheels

try building wheels

Use c++11 value initializers

fix doc errors

re-enable tests

fix tree_mesh example

VTK updates

Specifically set the data mode output to binary, and set the minimum vtk version

test on python 3.13

nope, not yet

update configuration

add pytest configure to pyproject.toml

use pooch to download laguna example

split a bunch of items

ignore another generated file

hide the doc tests

better display name

try building source and change docbuild command

just set python version here

add items to mark as orphans

source build is working

don't rely on the sorting of the downloaded items.

set PYVISTA_OFF_SCREEN in doc build

capitalize True?

reset pyvista configuration

this work?

set environment variables in headless display script

testing pipelinepublish

again

try to download artifacts

ls

space

Don't try to download docs at the moment

use PublishBuildArtifacts for wheels

test most

a bit

try setting up headless display once.

re-enable uploads

Add note for windows users

No longer forces "--vsenv" on Windows, so users might have to add this if the gnu compilers are on the path and they want to use the msvc compilers.

fix coverage upload

add pooch to doc requirements in pyproject.toml

Bit more cleanup and generate coverage xml

only tested through 3.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant