python 3.13 support #316
Workflow file for this run
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
name: Latest per-python environments | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.13"] | |
os: [ubuntu-22.04, macos-13, macos-14] # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners | |
toolchain: | |
- {compiler: gcc, version: 13} # https://github.com/fortran-lang/setup-fortran | |
name: ${{ matrix.os }} python${{ matrix.python-version}} | |
steps: | |
- name: Checkout PHOEBE | |
uses: actions/checkout@v4 | |
- name: Setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: PHOEBE environment variables | |
run: | | |
export PHOEBE_ENABLE_PLOTTING='FALSE' | |
export PHOEBE_UPDATE_PASSBAND_IGNORE_VERSION='TRUE' | |
- name: Update pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install phoebe optional modules | |
run: | | |
python -m pip install rebound celerite2 emcee | |
- name: Install PHOEBE from source | |
run: | | |
pip install . | |
- name: Install and run pipdeptree to see package dependencies | |
run: | | |
python -m pip install pipdeptree | |
pipdeptree | |
- name: Setup GNU Fortran | |
id: setup-fortran | |
uses: fortran-lang/setup-fortran@v1 | |
- name: Install jktebop | |
env: | |
FC: ${{ steps.setup-fortran.outputs.fc }} | |
run: | | |
wget https://www.astro.keele.ac.uk/jkt/codes/jktebop-v43.tgz | |
tar -xvzf jktebop-v43.tgz | |
cd jktebop43 | |
${{ env.FC }} -o jktebop jktebop.f | |
echo $(pwd) >> $GITHUB_PATH | |
cd .. | |
- name: Test jktebop install | |
run: | | |
jktebop | |
- name: Run tests | |
run: | | |
pytest --verbose --capture=no tests/tests/ |