Skip to content

Commit

Permalink
chore: only run integration tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sash-a committed Nov 13, 2024
1 parent 3264886 commit fa05975
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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:
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

0 comments on commit fa05975

Please sign in to comment.