Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,18 @@ jobs:
df -h
ulimit -a

- name: Setup Python ${{matrix.python-version}}
uses: actions/setup-python@v6
- name: Setup uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
enable-cache: true

- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install '.[test]'

- name: List versions
run: |
python -m pip list
- name: Install Project
run: uv sync --locked --all-extras

- name: Run tests
run: |
cd tests/
pytest -v --cov=gha_runner --cov-report=xml --color=yes .
uv run pytest -v --cov=gha_runner --cov-report=xml --color=yes tests

- name: CodeCov
uses: codecov/codecov-action@v7
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@ jobs:
with:
persist-credentials: false
fetch-depth: 0
- name: Setup uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
with:
python-version: "3.12"

- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install build
run: >-
python -m
pip install
build
--user
- name: Build binary wheel and source tarball
run: python3 -m build
- name: Build binary-wheel and source tarball
run: uv build
- name: Store distribution
uses: actions/upload-artifact@v7
with:
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
readme = "README.md"
requires-python = ">= 3.12"
dependencies = ["requests"]
license.file = "LICENSE"
license = "MIT"
dynamic = ["version"]

[project.optional-dependencies]
Expand All @@ -28,7 +28,6 @@ where = ["src"]
gha_runner = ["*.templ", "templates/*.templ"]

[tool.versioningit]
pep440 = true

[tool.coverage.report]
exclude_also = ["raise NotImplementedError"]
Expand Down
Loading
Loading