add __add__ #626
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
# This workflow will for a variety of Python versions | |
# - install the code base | |
# - lint the code base | |
# - test the code base | |
# - upload the test coverage to codecov | |
# | |
# It will also | |
# - build the package | |
# - check the package | |
# | |
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | |
name: CI using pip | |
on: [push, pull_request] | |
jobs: | |
Code_Consistency: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: chartboost/ruff-action@v1 | |
- name: Suggestion to fix issues | |
if: ${{ failure() }} | |
run: | | |
echo "::notice::In project root run 'python.exe -m ruff . --fix' and commit changes to fix issues." | |
exit 1 | |
Code_Testing: | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.10', '3.11', '3.12', '3.13'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: pip install -e '.[dev]' | |
- name: Test with tox | |
run: | | |
pip install tox tox-gh-actions coverage | |
tox | |
- name: Upload coverage | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN_NEW }} | |
name: Pytest coverage | |
env_vars: OS,PYTHON,GITHUB_ACTIONS,GITHUB_ACTION,GITHUB_REF,GITHUB_REPOSITORY,GITHUB_HEAD_REF,GITHUB_RUN_ID,GITHUB_SHA,COVERAGE_FILE | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: ${{ matrix.python-version }} | |
Package_Testing: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies and build | |
run: | | |
pip install -e '.[dev]' | |
python -m build | |
- name: Check Build | |
run: | | |
pip install tox tox-gh-actions coverage | |
tox |