fix: change generated report file name format #34
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] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install (locked) | |
| if: hashFiles('**/requirements.txt') != '' | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| # dev tools for CI (ruff/black/mypy/pytest) | |
| pip install -e .[dev] | |
| - name: Install (pyproject) | |
| if: hashFiles('**/requirements.txt') == '' | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[dev] | |
| - name: Lint (ruff) | |
| run: ruff check . | |
| - name: Format check (black) | |
| run: black --check . | |
| # - name: Type check (mypy) | |
| # run: mypy | |
| # - name: Run tests | |
| # env: | |
| # PYTHONPATH: . | |
| # run: pytest -q --cov=app --cov-report=xml | |
| # - name: Upload coverage | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: coverage-xml | |
| # path: coverage.xml |