Skip to content

Arc updates

Arc updates #98

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 .[tests,backends]
- 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 .[tests]
- name: Run Unit Tests
run: |
pytest . -m "not high_memory and not slow and not backend"
changelog:
# https://fredrikmeyer.net/2021/05/12/github-actions-changelog.html
name: Changelog Updated
runs-on: ubuntu-latest
if: github.repository_owner == 'QTC-UMD' && github.event_name == 'pull_request'
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;