-
Notifications
You must be signed in to change notification settings - Fork 242
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
Actions build #3635
Actions build #3635
Conversation
String p = f.getParent(); | ||
String n = f.getName(); | ||
return new Location(p, n + ".bfoptions").getAbsolutePath(); | ||
return new Location(id + ".bfoptions").getAbsolutePath(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what behavior you are trying to fix on Windows here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\t1.tiff
on windows will be turned into \\t1.tiff.bfoptions
instead of D:\t1.tiff.bfoptions
.
The case \foo\t1.tiff
works as expected without the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Immediate thought is that \foo\t1.tiff
is not a valid Windows path anyways no? The alternate approach should be to update the unit test data provider to work on both platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are only for linux so I went for the approach of replacing /
by \
as I had to do for the other sets of tests and use Location to be "correct" since it is not the current drive that is returned i.e. D:
is returned when using GH actions
What was the rational behind the split in the first place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\foo\t1.tiff
will be valid from the current drive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supplementing the discussion on the API in #3635 (comment), a few comments on the migration:
The last two points are not blockers to getting this merged and have separate PRs. But it might be useful to discuss and agree on the overall progression and the goals for the upcoming release and beyond. /cc @ome/formats |
|
Agreed we held off on the full transition. So you would keep Travis CI -> mvn deploy -> OME Artifactory for now and investigate the GH workflow -> mvn deploy -> OSSRH as a follow-up? Or would there be some advantage into looking into GH workflow-> mvn deploy -> OME Artifactory as an intermediate step? |
our version of artifactory is not the most recent. I remember having to rewrite some code when working on Gradle due to the version of artifactory. So the same problem might happen with GH actions |
I will remove the maven file from this PR. Creating a template workflow |
|
https://github.com/jburel/bioformats/actions/runs/407883582 Run with last commit |
In short, happy to get this merged now as it gets us where we need to be without causing any breaking changes. The issue with the use of |
This PR introduces support for GH actions, upgrade to Python 3 and deprecate variable in UpgradeChecker.
GH actions only run the build with
ant
andmaven
in two separate files.I had to fix code/test to pass on Windows.
cc @sbesson
see https://github.com/jburel/bioformats/actions/runs/366417979 and https://github.com/jburel/bioformats/actions/runs/366417976