ci: improve workflow efficiency with best practices by theskumar · Pull Request #609 · theskumar/python-dotenv

@theskumar

- Limit workflow triggers to main branch for pushes
- Run tests on PRs targeting any branch
- Add concurrency control to cancel outdated workflow runs
- Set 15-minute timeout to prevent hung jobs
- Follows GitHub Actions best practices for open-source projects