Skip to content

Infrastructure update #526

Infrastructure update

Infrastructure update #526

Workflow file for this run

# GitHub Actions workflow for testing and continuous integration.
#
# This file performs testing using tox and tox.ini to define and configure the test environments.
# Remove -numpy126 when we support testing with numpy 2.0
# Allow testing of optional dependencies on Python 3.12+ when pyoorb is updated.
name: CI Tests
on:
push:
branches:
- main
tags:
- "*"
pull_request:
# branches: # only build on PRs against 'main' if you need to further limit when CI is run.
# - main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
ARCH_ON_CI: "normal"
IS_CRON: "false"
jobs:
# oorb-data:
# uses: ./.github/workflows/oorb_data.yml
tests:
# needs: [oorb-data]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
setenv: |
ARCH_ON_CI: "normal"
IS_CRON: "false"
OORB_DATA: "$GITHUB_WORKSPACE/oorb-data/"
# cache-path: oorb-data/
# cache-key: oorb-data
submodules: false
coverage: ""
envs: |
- name: Code style checks
linux: codestyle
- name: Python 3.14 with minimal dependencies, measuring coverage
linux: py314-test-cov
coverage: codecov
- name: Python 3.14 with all optional dependencies, measuring coverage
linux: py314-test-alldeps-cov
coverage: codecov
- name: Python 3.10 with oldest supported versions, measuring coverage
linux: py310-test-oldestdeps-cov
coverage: codecov
macos-test:
name: Python 3.11 with all optional dependencies (MacOS)
# needs: [oorb-data]
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v4
# - name: Restore cached files
# uses: actions/cache/restore@v4
# with:
# path: oorb-data/
# key: oorb-data
# - name: Set environment
# run: |
# echo "OORB_DATA=$GITHUB_WORKSPACE/oorb-data" >> "$GITHUB_ENV"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.14
- name: Install tox
run: |
pip install tox
- name: Run tests
run: |
tox -e py314-test-alldeps