v2.1 #104
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: Testing | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| testing: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| poetry-version: [1.8.2] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run image | |
| uses: abatilo/[email protected] | |
| with: | |
| poetry-version: ${{ matrix.poetry-version }} | |
| - name: Install Dependencies | |
| run: poetry install --no-interaction | |
| - name: Format Check | |
| run: poetry run flake8 src/ --ignore=E501,E203,W503,W504,F841 | |
| # - name: Type Check | |
| # run: poetry run mypy src/ | |
| - name: Run Tests | |
| run: poetry run pytest -v tests/ --cov-config=.coveragerc --cov=src/ --cov-branch --cov-report=xml | |
| - name: Upload coverage to Codecov | |
| if: ${{ matrix.python-version==3.10 }} | |
| uses: codecov/codecov-action@v1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} # ← CODECOVのアップロードトークン | |
| file: ./coverage.xml | |
| name: codecov-umbrella | |
| fail_ci_if_error: true |