add: dependency_injector and injector #21
Workflow file for this run
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: test-uv | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_call: | |
| inputs: | |
| check-service-test: | |
| required: false | |
| default: false | |
| type: boolean | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.13] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install MeCab dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y mecab libmecab-dev mecab-ipadic-utf8 | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| uv sync | |
| - name: Run tests | |
| run: | | |
| uv run tox |