reflex_init_in_docker_test.yml 1015 B

12345678910111213141516171819202122232425262728293031323334
  1. name: reflex-init-in-docker-test
  2. permissions:
  3. contents: read
  4. concurrency:
  5. group: ${{ github.workflow }}-${{ github.event.pull_request.id }}
  6. cancel-in-progress: true
  7. on:
  8. push:
  9. branches: ["main"]
  10. paths-ignore:
  11. - "**/*.md"
  12. pull_request:
  13. branches: ["main"]
  14. paths-ignore:
  15. - "**/*.md"
  16. jobs:
  17. # TODO we can extend to various starting points (e.g. Ubuntu with node, without node, with unzip, without unzip, etc.)
  18. # Currently starting point is: Ubuntu + unzip, xz-utils, Python suite. No node.
  19. reflex-install-and-init:
  20. timeout-minutes: 30
  21. runs-on: ubuntu-latest
  22. steps:
  23. - uses: actions/checkout@v4
  24. - shell: bash
  25. run: |
  26. # Run reflex init in a docker container
  27. # cwd is repo root
  28. docker build -f tests/integration/init-test/Dockerfile -t reflex-init-test tests/integration/init-test
  29. docker run --rm -v $(pwd):/reflex-repo/ reflex-init-test /reflex-repo/tests/integration/init-test/in_docker_test_script.sh