-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 974 Bytes
/
build_test_publish.yml
File metadata and controls
34 lines (31 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build, Test and Publish
on:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Upgrade pip and install requests
run: python -m pip install --upgrade build requests
- name: Download the JPL Small Bodies DE441 N16 file
run: python jpl_small_bodies_de441_n16/fetch.py
- name: Install jpl_small_bodies_de441_n16
run: pip install .[tests]
- name: Test jpl_small_bodies_de441_n16
run: pytest .
- name: Build Source Distribution and Wheel
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish jpl_small_bodies_de441_n16 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: false
verbose: true