integration_tests_wsl.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. name: integration-tests-wsl
  2. concurrency:
  3. group: ${{ github.workflow }}-${{ github.event.pull_request.id }}
  4. cancel-in-progress: true
  5. on:
  6. push:
  7. branches: ["main"]
  8. paths-ignore:
  9. - "**/*.md"
  10. pull_request:
  11. branches: ["main"]
  12. paths-ignore:
  13. - "**/*.md"
  14. permissions:
  15. contents: read
  16. env:
  17. TELEMETRY_ENABLED: false
  18. NODE_OPTIONS: "--max_old_space_size=4096"
  19. jobs:
  20. example-counter-wsl:
  21. timeout-minutes: 20
  22. runs-on: windows-latest
  23. steps:
  24. - uses: actions/checkout@v4
  25. - name: Clone Reflex Examples Repo
  26. uses: actions/checkout@v4
  27. with:
  28. repository: reflex-dev/reflex-examples
  29. path: reflex-examples
  30. - uses: Vampire/setup-wsl@v5
  31. with:
  32. distribution: Ubuntu-24.04
  33. - name: Install packages
  34. shell: wsl-bash {0}
  35. run: |
  36. sudo apt-get update
  37. sudo apt-get install -y python3 python3-pip curl dos2unix zip unzip
  38. - name: Install Uv
  39. shell: wsl-bash {0}
  40. run: |
  41. curl -LsSf https://astral.sh/uv/install.sh | sh
  42. - name: Install reflex deps
  43. shell: wsl-bash {0}
  44. run: |
  45. /root/.local/bin/uv sync --link-mode=copy
  46. - name: Install requirements for counter example
  47. working-directory: ./reflex-examples/counter
  48. shell: wsl-bash {0}
  49. run: |
  50. /root/.local/bin/uv pip install -r requirements.txt --link-mode=copy
  51. - name: Check export --backend-only before init for counter example
  52. working-directory: ./reflex-examples/counter
  53. shell: wsl-bash {0}
  54. run: |
  55. export TELEMETRY_ENABLED=false
  56. /root/.local/bin/uv run reflex export --backend-only
  57. - name: Check run --backend-only before init for counter example
  58. shell: wsl-bash {0}
  59. run: |
  60. export TELEMETRY_ENABLED=false
  61. dos2unix scripts/integration.sh
  62. /root/.local/bin/uv run bash scripts/integration.sh ./reflex-examples/counter dev 8001 --backend-only --backend-port 8001
  63. - name: Init Website for counter example
  64. working-directory: ./reflex-examples/counter
  65. shell: wsl-bash {0}
  66. run: |
  67. export TELEMETRY_ENABLED=false
  68. /root/.local/bin/uv run reflex init --loglevel debug
  69. - name: Check export for counter example
  70. working-directory: ./reflex-examples/counter
  71. shell: wsl-bash {0}
  72. run: |
  73. export TELEMETRY_ENABLED=false
  74. /root/.local/bin/uv run reflex export --frontend-only --loglevel debug
  75. - name: Run Website and Check for errors
  76. shell: wsl-bash {0}
  77. run: |
  78. export TELEMETRY_ENABLED=false
  79. /root/.local/bin/uv run bash scripts/integration.sh ./reflex-examples/counter dev