reflex_init_in_docker_test.yml 985 B

1234567891011121314151617181920212223242526272829303132
  1. name: reflex-init-in-docker-test
  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. jobs:
  15. # TODO we can extend to various starting points (e.g. Ubuntu with node, without node, with unzip, without unzip, etc.)
  16. # Currently starting point is: Ubuntu + unzip, xz-utils, Python suite. No node.
  17. reflex-install-and-init:
  18. timeout-minutes: 30
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/checkout@v4
  22. - shell: bash
  23. run: |
  24. # Run reflex init in a docker container
  25. # cwd is repo root
  26. docker build -f tests/integration/init-test/Dockerfile -t reflex-init-test tests/integration/init-test
  27. docker run --rm -v $(pwd):/reflex-repo/ reflex-init-test /reflex-repo/tests/integration/init-test/in_docker_test_script.sh