chore(deps): update all non-major dependencies #157
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: Unittest | |
| permissions: {} | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: | |
| - '.github/workflows/unittest.yml' | |
| - 'sshconfig_to_ananta/**' | |
| - 'tests/**' | |
| - 'pdm.lock' | |
| - 'pyproject.toml' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/unittest.yml' | |
| - 'sshconfig_to_ananta/**' | |
| - 'tests/**' | |
| - 'pdm.lock' | |
| - 'pyproject.toml' | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| os: [ubuntu-latest, macOS-latest] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Test with python ${{ matrix.python-version }} | |
| run: | | |
| python3 -m pip install . | |
| python3 -m unittest discover -s tests | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: '3.14' | |
| - name: Install the latest version of uv and set the python version | |
| uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0 | |
| with: | |
| enable-cache: true | |
| - name: Generate Coverage Reports | |
| run: | | |
| uv run --with pytest --with pytest-cov -- \ | |
| pytest --cov --cov-branch --cov-report=xml | |
| - name: Upload results to Codecov | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |