integration-tests.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Coriolis Integration Tests
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. branches: [ "master" ]
  6. permissions:
  7. contents: read
  8. jobs:
  9. integration:
  10. runs-on: ubuntu-24.04
  11. steps:
  12. - name: Checkout repository
  13. uses: actions/checkout@v4
  14. - name: Set up Python 3.10
  15. uses: actions/setup-python@v4
  16. with:
  17. python-version: "3.10"
  18. architecture: "x64"
  19. - name: Update apt package lists
  20. shell: bash
  21. run: sudo apt-get update -y
  22. - name: Install tox
  23. shell: bash
  24. run: |
  25. sudo apt install tox
  26. - name: Install scsi_debug kernel module
  27. shell: bash
  28. run: |
  29. sudo apt-get install -y linux-modules-extra-$(uname -r)
  30. - name: Build write_data resource binary
  31. shell: bash
  32. run: |
  33. sudo apt-get install -y build-essential zlib1g-dev
  34. make -C coriolis/resources
  35. - name: Build Docker image for integration test minions
  36. shell: bash
  37. run: |
  38. docker build -t coriolis-data-minion:test \
  39. coriolis/tests/integration/dockerfiles/data-minion/
  40. - name: Run integration tests
  41. shell: bash
  42. run: |
  43. sudo -E tox -e integration -v