chore(deps-dev): update ruff requirement from <0.16,>=0.15 to >=0.15,<0.17 in the python-dependencies group #93
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Check out repository | |
| # actions/checkout v7.0.1 | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Python | |
| # actions/setup-python v7.0.0 | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install test dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install hermes-agent | |
| python -m pip install -e '.[test]' | |
| hermes --version | |
| - name: Check version policy | |
| env: | |
| VERSION_POLICY_BASE_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }} | |
| run: python scripts/check_version_policy.py | |
| - name: Run tests | |
| run: python -m pytest -q | |
| - name: Run Ruff | |
| run: python -m ruff check . | |
| - name: Run mypy | |
| run: python -m mypy | |
| windows-tests: | |
| name: Windows Python 3.12 | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository | |
| # actions/checkout v7.0.1 | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Python | |
| # actions/setup-python v7.0.0 | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install test dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install hermes-agent | |
| python -m pip install -e '.[test]' | |
| hermes --version | |
| - name: Check version policy | |
| env: | |
| VERSION_POLICY_BASE_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }} | |
| run: python scripts/check_version_policy.py | |
| - name: Run tests | |
| run: python -m pytest -q | |
| release: | |
| name: Publish new version | |
| needs: [tests, windows-tests] | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| permissions: | |
| contents: write | |
| uses: ./.github/workflows/release.yml |