Final payment date correction for non-US markets #88
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: Run Unit Tests | |
| on: | |
| # 1. Automatically run on pushes to main | |
| push: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - '**/**.md' # Optional: Ignores READMEs in subdirectories | |
| # 2. Automatically run on incoming Pull Requests targeting main | |
| pull_request: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - '**/**.md' # Optional: Ignores READMEs in subdirectories | |
| # 3. Allow manual execution on ANY branch via GitHub UI | |
| workflow_dispatch: | |
| jobs: | |
| pytest: | |
| name: Run Pytest Suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| pip install pytest pytest-cov requests | |
| - name: Execute Pytest Suite | |
| env: | |
| PYTHONPATH: . | |
| run: | | |
| python -m pytest unittests/ -vs --cov=CheckRoyalCaribbeanPrice --cov=BrowseRoyalCaribbeanPrice --cov-report=term-missing |