Merge pull request #65 from QTC-UMD/release_2.1.3 #178
This file contains hidden or 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: 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; |