Skip to content

Make actions use docker compose file #28

Make actions use docker compose file

Make actions use docker compose file #28

Workflow file for this run

name: Main
on:
workflow_dispatch:
push:
branches:
- main
- v2
env:
REPOSITORY: lukeshirnia/out-of-memory
jobs:
detect-file-changes:
runs-on: ubuntu-latest
outputs:
docker_changes: ${{ steps.changes.outputs.docker_changes }}
oom_investigate: ${{ steps.changes.outputs.oom_investigate }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
docker_changes:
- "Dockerfile"
- "docker-compose.yml"
oom_investigate:
- ".github/workflows/*.yml"
- "tests/**/*"
- "oom_investigate.py"
build-pytest-images:
needs:
- detect-file-changes
uses: ./.github/workflows/build-pytest-images.yml

Check failure on line 37 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

error parsing called workflow ".github/workflows/main.yml" -> "./.github/workflows/build-pytest-images.yml" : failed to fetch workflow: workflow was not found.
if: needs.detect-file-changes.outputs.docker_changes == 'true'
black:
needs:
- detect-file-changes
uses: ./.github/workflows/black.yml
if: needs.detect-file-changes.outputs.oom_investigate == 'true'
isort:
needs:
- detect-file-changes
uses: ./.github/workflows/isort.yml
if: needs.detect-file-changes.outputs.oom_investigate == 'true'
pytest:
needs:
- detect-file-changes
- build-pytest-images
uses: ./.github/workflows/pytest.yml
if: needs.detect-file-changes.outputs.oom_investigate == 'true'
secrets: inherit