Write delivery.py for a fictional bakery's online checkout. Accept only a non-negative integer amount in Thai baht; reject bool, strings and fractional amounts. Delivery costs 50 baht below 500 baht and is free at 500 baht or more. Write eight unittest tests covering 0, 499, 500, 501, -1, "500", 499.5 and True. Use only Python's standard library. Explain which business rule each test checks. Do not change the tests to hide a failure. Provide a minimal GitHub Actions workflow that runs the tests on pushes and pull requests, with read-only repository permissions and no secrets or deployment.
