Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
orekit_jpype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
orekit_jpype
Commits
08b82081
Commit
08b82081
authored
1 year ago
by
Petrus Hyvönen
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
8a756280
2602197e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/python-package.yml
+40
-0
40 additions, 0 deletions
.github/workflows/python-package.yml
README.md
+8
-0
8 additions, 0 deletions
README.md
pyproject.toml
+3
-1
3 additions, 1 deletion
pyproject.toml
with
51 additions
and
1 deletion
.github/workflows/python-package
-conda
.yml
→
.github/workflows/python-package.yml
+
40
−
0
View file @
08b82081
name
:
Python Package using Conda
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
on
:
[
push
]
name
:
Python package
on
:
push
:
branches
:
[
"
master"
]
pull_request
:
branches
:
[
"
master"
]
jobs
:
build-linux
:
build
:
runs-on
:
ubuntu-latest
strategy
:
max-parallel
:
5
fail-fast
:
false
matrix
:
python-version
:
[
"
3.9"
,
"
3.10"
,
"
3.11"
]
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
3.10
-
name
:
Set up Python
${{ matrix.python-version }}
uses
:
actions/setup-python@v3
with
:
python-version
:
'
3.10'
-
name
:
Add conda to system path
run
:
|
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
|
conda env update --file environment.yml --name base
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-
name
:
Lint with flake8
run
:
|
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
-
name
:
Test with pytest
run
:
|
conda install pytest
pytest
cd test; pytest
This diff is collapsed.
Click to expand it.
README.md
+
8
−
0
View file @
08b82081
...
...
@@ -72,5 +72,13 @@ Each model has advantages and disadvantages.
python -m build
To upload to pypi:
python3 -m twine upload --repository testpypi dist/*
To install:
pip install -i https://test.pypi.org/simple/ orekit-jpype==12.0.2.dev1
# usage
See the example notebooks and the package test folder for examples.
This diff is collapsed.
Click to expand it.
pyproject.toml
+
3
−
1
View file @
08b82081
...
...
@@ -30,7 +30,9 @@ dependencies = [
]
[project.urls]
homepage
=
"https://gitlab.orekit.org/Petrush/orekit_jpype/-/tree/master"
source
=
"https://gitlab.orekit.org/Petrush/orekit_jpype/-/tree/master"
homepage
=
"https://www.orekit.org/"
forum
=
"https://forum.orekit.org/"
[project.optional-dependencies]
tests
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment