diff --git a/.github/workflows/tests_linters.yaml b/.github/workflows/ci.yaml similarity index 85% rename from .github/workflows/tests_linters.yaml rename to .github/workflows/ci.yaml index 440d9aa4f..d730ba077 100644 --- a/.github/workflows/tests_linters.yaml +++ b/.github/workflows/ci.yaml @@ -1,12 +1,12 @@ -name: Tests and Linters 🧪 +name: CI 🧪 on: [ pull_request ] jobs: - tests-and-linters: + linters: name: "Python ${{ matrix.python-version }} on ubuntu-latest" runs-on: ubuntu-latest - timeout-minutes: 20 + timeout-minutes: 5 strategy: matrix: @@ -34,6 +34,3 @@ jobs: - name: Run linters 🖌️ run: pre-commit run --all-files --verbose - - - name: Run tests 🧪 - run: pytest -p no:warnings diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml new file mode 100644 index 000000000..09a55c7ec --- /dev/null +++ b/.github/workflows/integration_tests.yaml @@ -0,0 +1,35 @@ +name: Integration Tests: 🧪 + +on: + push: + branches: + - develop + +jobs: + integration-tests: + name: "Python ${{ matrix.python-version }} on ubuntu-latest" + runs-on: ubuntu-latest + timeout-minutes: 20 + + steps: + - name: Checkout mava + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + version: "0.4.26" + enable-cache: true + cache-dependency-glob: "requirements/requirements**.txt" # invalidate cache when requirements file changes + + - uses: actions/setup-python@v5 + with: + python-version: "${{ matrix.python-version }}" + + - name: Install python dependencies 🔧 + run: uv pip install .[dev] + env: + UV_SYSTEM_PYTHON: 1 + + - name: Run integration tests 🧪 + run: pytest test/integration_test.py -p no:warnings