Skip to content

Build and Test

Build and Test #20

Workflow file for this run

name: Build and Test
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
schedule:
- cron: "15 2 * * *" # 2:15am UTC every day
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Upgrade pip and install requests
run: python -m pip install --upgrade build requests
- name: Download the NAIF longterm predict EOP file
run: python naif_eop_predict/fetch.py
- name: Install naif_eop_predict
run: pip install .[tests]
- name: Test naif_eop_predict
run: pytest .