Skip to content

chore: sync version numbers from pyproject.toml #781

chore: sync version numbers from pyproject.toml

chore: sync version numbers from pyproject.toml #781

Workflow file for this run

name: Ubuntu Tests
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
push:
paths:
- TidalPy/**
env:
TIDALPY_TEST_MODE: 1
jobs:
lint-with-ruff:
if: |
github.event_name == 'pull_request' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.head_commit.message, 'run tests')
name: Lint TidalPy with ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install ruff
run: pip install ruff
- name: Run ruff linting
run: ruff check TidalPy/ --ignore F401,E402,E501 --select E,F
test-ubuntu:
if: |
github.event_name == 'pull_request' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.head_commit.message, 'run tests')
name: Test TidalPy on Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install Other Dependencies
# For burnman, need GitHub version to enable python 3.12 support.
run: |
python -m pip install pytest pytest-xdist
- name: Install Package with Burnman
if: ${{ fromJSON(matrix.python-version) < 3.13 }}
shell: bash -el {0}
run: |
python -m pip install -v .[burnman]
- name: Install Package (No Burnman)
if: ${{ fromJSON(matrix.python-version) >= 3.13 }}
shell: bash -el {0}
run: |
python -m pip install -v .
- name: Run pytest
run: pytest -n auto -v Tests/