Skip to content
Closed
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
159 changes: 0 additions & 159 deletions .github/workflows/release.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test

on:
pull_request:
push:
branches: [mainline]

permissions:
contents: read

jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m unittest discover -s tests -v
- run: python -m pip install build
- run: python -m build
- run: python -m pip install dist/*.whl
- run: python -c "import otadump; assert callable(otadump.extract)"

artifact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: python tests/artifact_smoke.py
13 changes: 2 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
### Rust ###
# Generated by Cargo
# will have compiled files and executables
debug/
dist/
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
*.egg-info/
.venv/

### Custom ###
__pycache__/
Expand Down
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Testing

- Run `python -m unittest discover -s tests -v` for every change.
- Unit tests must not use the network or the user's real artifact cache.
- Run `python tests/artifact_smoke.py` when changing artifact acquisition or process invocation.
Loading
Loading