Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: only run integration tests after merge to dev #1140

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Tests and Linters 🧪
name: CI 🧪

RuanJohn marked this conversation as resolved.
Show resolved Hide resolved
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:
Expand Down Expand Up @@ -34,6 +34,3 @@ jobs:

- name: Run linters 🖌️
run: pre-commit run --all-files --verbose

- name: Run tests 🧪
run: pytest -p no:warnings
35 changes: 35 additions & 0 deletions .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading