diff --git a/.github/workflows/memory_leak.yml b/.github/workflows/memory_leak.yml index 343692d..3195e88 100644 --- a/.github/workflows/memory_leak.yml +++ b/.github/workflows/memory_leak.yml @@ -2,14 +2,10 @@ name: Memory Leaks on: push: - branches: - - master paths: - 'src/_pyawaitable/**' - '.github/workflows/memory_leak.yml' pull_request: - branches: - - master paths: - 'src/_pyawaitable/**' - '.github/workflows/memory_leak.yml' diff --git a/.github/workflows/memory_leak_noop.yml b/.github/workflows/memory_leak_noop.yml new file mode 100644 index 0000000..48a33d8 --- /dev/null +++ b/.github/workflows/memory_leak_noop.yml @@ -0,0 +1,19 @@ +name: Memory Leaks + +on: + push: + paths-ignore: + - 'src/_pyawaitable/**' + - '.github/workflows/memory_leak.yml' + pull_request: + paths-ignore: + - 'src/_pyawaitable/**' + - '.github/workflows/memory_leak.yml' + +jobs: + memory-leaks: + name: Check for memory leaks and errors + runs-on: ubuntu-latest + + steps: + - run: 'echo "This change does not affect C code."' \ No newline at end of file diff --git a/.github/workflows/test_noop.yml b/.github/workflows/test_noop.yml new file mode 100644 index 0000000..fa39ee6 --- /dev/null +++ b/.github/workflows/test_noop.yml @@ -0,0 +1,21 @@ +name: Tests + +on: + push: + paths: + - 'tests/**' + - 'src/**' + - '.github/workflows/tests.yml' + pull_request: + paths: + - 'tests/**' + - 'src/**' + - '.github/workflows/tests.yml' + +jobs: + run-tests: + name: Tests + runs-on: ubuntu-latest + + steps: + - run: 'echo "This change does not affect tests."' \ No newline at end of file