Skip to content

Commit

Permalink
ci(test): test main for neural-forecasting-forecast-air-passenger-num…
Browse files Browse the repository at this point in the history
…ber (#13528)
  • Loading branch information
hongbo-miao authored Dec 31, 2023
1 parent 144ee63 commit b973af9
Show file tree
Hide file tree
Showing 6 changed files with 194 additions and 22 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
mobile-android: ${{ steps.filter.outputs.mobile-android }}
mobile-ios: ${{ steps.filter.outputs.mobile-ios }}
mobile-react-native: ${{ steps.filter.outputs.mobile-react-native }}
neural-forecasting-forecast-air-passenger-number: ${{ steps.filter.outputs.neural-forecasting-forecast-air-passenger-number }}
prometheus: ${{ steps.filter.outputs.prometheus }}
robot-operating-system: ${{ steps.filter.outputs.robot-operating-system }}
streaming: ${{ steps.filter.outputs.streaming }}
Expand Down Expand Up @@ -92,6 +93,9 @@ jobs:
mobile-react-native:
- '.github/workflows/test.yml'
- 'mobile-react-native/**'
neural-forecasting-forecast-air-passenger-number:
- '.github/workflows/test.yml'
- 'neural-forecasting/forecast-air-passenger-number/**'
prometheus:
- '.github/workflows/test.yml'
- 'prometheus/**'
Expand Down Expand Up @@ -524,6 +528,42 @@ jobs:
with:
directory: api-python

neural-forecasting-forecast-air-passenger-number:
name: Neural Forecasting (forecast-air-passenger-number) | Test
needs: detect-changes
if: ${{ needs.detect-changes.outputs.neural-forecasting-forecast-air-passenger-number == 'true' }}
runs-on: ubuntu-22.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: poetry
cache-dependency-path: neural-forecasting/forecast-air-passenger-number/poetry.lock
- name: Set Poetry environment
working-directory: neural-forecasting/forecast-air-passenger-number
run: |
poetry env use python3.11
- name: Install dependencies
working-directory: neural-forecasting/forecast-air-passenger-number
run: |
poetry install --no-root
- name: Test
working-directory: neural-forecasting/forecast-air-passenger-number
run: |
poetry run poe test-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: neural-forecasting/forecast-air-passenger-number

spark-find-retired-people-scala:
name: Spark (find-retired-people-scala) | Test
needs: detect-changes
Expand Down
3 changes: 3 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ pull_request_rules:
- or:
- check-success=API - Python | Test
- check-skipped=API - Python | Test
- or:
- check-success=Neural Forecasting (forecast-air-passenger-number) | Test
- check-skipped=Neural Forecasting (forecast-air-passenger-number) | Test
- or:
- check-success=Spark (find-retired-people-scala) | Test
- check-skipped=Spark (find-retired-people-scala) | Test
Expand Down
4 changes: 4 additions & 0 deletions neural-forecasting/forecast-air-passenger-number/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ poetry-install:

poetry-run-dev:
poetry run poe dev
poetry-run-test:
poetry run poe test
poetry-run-test-coverage:
poetry run poe test-coverage
Loading

0 comments on commit b973af9

Please sign in to comment.