Some minor changes to pyproject.toml. #54
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 | ||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| pull_request: | ||
| branches: [main, master] | ||
| concurrency: | ||
| group: test-${{ github.head_ref }} | ||
| cancel-in-progress: true | ||
| env: | ||
| PYTHONUNBUFFERED: "1" | ||
| FORCE_COLOR: "1" | ||
| jobs: | ||
| run: | ||
| name: Python ${{ matrix.python-version }} Tests | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest] | ||
| python-version: ["3.10", "3.11", "3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | ||
| - apt update && apt install yamllint | ||
| - pip install uv | ||
| - name: Check code | ||
| run: | ||
| - yamllint . | ||
| - uv run mypy --check . | ||
| - uv run ruff check . | ||
| - name: Run tests | ||
| run: uv run pytest --junitxml=pytest.xml | ||
| # TODO: Look into github actions, these are out of date | ||
| # - name: Upload coverage data | ||
| # uses: actions/upload-artifact@v3 | ||
| # with: | ||
| # name: coverage-data | ||
| # path: coverage.xml | ||
| # - name: Publish Test Report | ||
| # uses: mikepenz/action-junit-report@v3 | ||
| # if: success() || failure() | ||
| # with: | ||
| # report_paths: unit_test.xml | ||