Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: setup integration tests (#46)

authored by

Caidan and committed by
GitHub
2da927fa a08942ce

+45 -1
+43
.github/workflows/integration-tests.yml
··· 1 + name: Integration Tests 2 + 3 + on: 4 + pull_request: 5 + branches: [main] 6 + types: [opened, synchronize, reopened, ready_for_review] 7 + push: 8 + branches: [main] 9 + 10 + concurrency: 11 + group: ${{ github.workflow }}-${{ github.ref }} 12 + cancel-in-progress: true 13 + 14 + jobs: 15 + integration-tests: 16 + runs-on: ubuntu-24.04 17 + timeout-minutes: 30 18 + 19 + steps: 20 + - name: Checkout code 21 + uses: actions/checkout@v4 22 + 23 + - name: Set up Docker Buildx 24 + uses: docker/setup-buildx-action@v3 25 + 26 + - name: Create temp directory for test results 27 + run: mkdir -p /tmp/test-results 28 + 29 + - name: Pull and build Docker images 30 + run: | 31 + docker compose -f docker-compose.yaml -f docker-compose.test.yaml --profile test pull 32 + docker compose -f docker-compose.yaml -f docker-compose.test.yaml --profile test build 33 + 34 + - name: Run integration tests 35 + run: ./run-tests.sh --junitxml=/tmp/test-results/junit-pytest.xml 36 + 37 + - name: Upload test results 38 + uses: actions/upload-artifact@v4 39 + if: always() 40 + with: 41 + name: pytest-results 42 + path: /tmp/test-results/junit-pytest.xml 43 + retention-days: 30
+2 -1
docker-compose.test.yaml
··· 3 3 4 4 services: 5 5 postgres: 6 + ports: !reset [] 6 7 volumes: !reset [] 7 8 8 9 minio: ··· 95 96 - ./osprey_rpc:/osprey/osprey_rpc 96 97 - ./example_rules:/osprey/example_rules 97 98 - ./entrypoint.sh:/osprey/entrypoint.sh 98 - # entrypoint: "uv run pytest" 99 + - /tmp/test-results:/tmp/test-results 99 100 command: ["run-tests"]