-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat: add IERS https deltat sync feat: add IERS bulletin-A download ci: add workflow for appending delta times chore: update leap seconds list chore: update deltat file chore: update mean pole table chore: update finals file
- Loading branch information
1 parent
53bd988
commit 9a573c3
Showing
19 changed files
with
4,962 additions
and
2,890 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# This workflow will install Python dependencies and get the latest bulletin-A file | ||
|
||
name: Auto-Update Bulletin-A files | ||
|
||
on: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.8] | ||
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python-version }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up conda ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
activate-environment: pyTMD | ||
environment-file: environment.yml | ||
- name: Create conda Test Environment | ||
run: | | ||
conda install flake8 pytest pytest-cov cython | ||
- name: Lint with flake8 | ||
run: | | ||
# 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: | | ||
python -c "import pyTMD.time; pyTMD.time.update_bulletin_a(verbose=True)" | ||
- name: Check for changes | ||
id: changes | ||
run: | | ||
if [ -n "$(git status --porcelain data/ser7.dat)" ] ; then | ||
echo "::set-output name=detected::true"; | ||
echo "::debug::Changes detected"; | ||
else | ||
echo "::set-output name=detected::false"; | ||
echo "::debug::No changes detected"; | ||
fi | ||
- name: Append delta time file | ||
if: steps.changes.outputs.detected == 'true' | ||
run: | | ||
python -c "import pyTMD.time; pyTMD.time.append_delta_time(verbose=True)" | ||
- name: Create pull request | ||
if: steps.changes.outputs.detected == 'true' | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
assignees: ${{ github.actor }} | ||
title: "data: automatic time updates" |
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 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 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 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
Oops, something went wrong.