-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from B612-Asteroid-Institute/nt/adam-core-inte…
…rnals Add parallel precovery_db implementation that uses adam_core orbits/propagation
- Loading branch information
Showing
43 changed files
with
13,688 additions
and
13,992 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,48 @@ name: Lint and Test | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [ main, "v*"] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [ main, "v*"] | ||
|
||
jobs: | ||
build-lint-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
env: | ||
IMAGE_TAG: ${{ github.sha }} | ||
steps: | ||
- name: Checkout git repo | ||
uses: actions/checkout@v2 | ||
- uses: jpribyl/[email protected] | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: actions/checkout@v3 | ||
- name: Get git tags | ||
run: git fetch --prune --unshallow --tags | ||
- uses: actions/setup-python@v4 | ||
with: | ||
install: true | ||
- name: Build Precovery in Docker | ||
run: docker build --load -t precovery:$IMAGE_TAG . | ||
- name: lint | ||
run: docker run -i precovery:$IMAGE_TAG pre-commit run --all-files | ||
- name: lint tests | ||
run: docker run -i precovery:$IMAGE_TAG pytest --exitfirst . | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
# Use pip to install dependencies | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ".[dev]" | ||
# Run linter | ||
- name: Run linter | ||
run: | | ||
pdm run check | ||
# Get JPL ephemeris files | ||
- name: Get JPL ephemeris files | ||
run: | | ||
python scripts/set_up_assist.py | ||
- name: Set JPL ephemeris environment variable | ||
run: | | ||
export ASSIST_DATA_DIR=~/.adam_assist_data | ||
# Run tests | ||
- name: Run tests | ||
run: | | ||
pdm run coverage | ||
- name: Coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
path-to-lcov: coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.