Skip to content

Version bump changelog for release #175

Version bump changelog for release

Version bump changelog for release #175

Workflow file for this run

name: Checks
on:
push:
branches:
- master
- main
pull_request:
jobs:
linting:
name: Linting
runs-on: ubuntu-latest
if: github.repository_owner == 'QTC-UMD'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Linting
uses: astral-sh/ruff-action@v1
with:
src: "./src"
pytest:
name: Unit Tests
runs-on: ubuntu-latest
if: github.repository_owner == 'QTC-UMD'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Rydiqule and Dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[backends] "numpy<2"
pip install --group tests
- name: Run Unit Tests
run: |
pytest . -m "not high_memory and not slow"
pytest-np2:
name: Unit Tests with Numpy 2
runs-on: ubuntu-latest
if: github.repository_owner == 'QTC-UMD'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Rydiqule and Dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[backends]
pip install --group tests
- name: Run Unit Tests
run: |
pytest . -m "not high_memory and not slow"
changelog:
# https://fredrikmeyer.net/2021/05/12/github-actions-changelog.html
# https://github.com/taridees/changelog-check-action
name: Changelog Updated
runs-on: ubuntu-latest
if: >
(
github.repository_owner == 'QTC-UMD' &&
github.event_name == 'pull_request' &&
! contains(github.event.pull_request.labels.*.name, 'no changelog') &&
! github.event.pull_request.draft &&
! contains(github.event.pull_request.title, 'WIP')
)
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check up changelog updated
run: |
FILES_CHANGED=$(git diff --name-only origin/main...HEAD | grep -E 'changelog.rst' -c)
if [ "$FILES_CHANGED" != "1" ]; then echo >&2 "Remember to update changelog.rst"; exit 1; fi;