diff --git a/.github/workflows/ci_compatible.yml b/.github/workflows/ci_compatible.yml index 4f350841..97d5b037 100644 --- a/.github/workflows/ci_compatible.yml +++ b/.github/workflows/ci_compatible.yml @@ -32,12 +32,14 @@ jobs: with: python-version: 3.8 + - name: Install requirements + run: pip install -q -r requirements.txt + - name: Get PR diff id: diff-files env: PR_NUMBER: "${{ github.event.pull_request.number }}" run: | - pip install -q -r requirements.txt pr_runtimes=$(python _actions/assistant.py list_runtimes $PR_NUMBER) echo $pr_runtimes echo "runtimes={include: $pr_runtimes}" >> $GITHUB_OUTPUT @@ -56,7 +58,7 @@ jobs: max-parallel: 25 fail-fast: false matrix: ${{ fromJSON(needs.generator.outputs.matrix) }} - timeout-minutes: 35 + timeout-minutes: 120 steps: - uses: actions/checkout@v3 diff --git a/_actions/assistant.py b/_actions/assistant.py index e9d7b045..89754936 100644 --- a/_actions/assistant.py +++ b/_actions/assistant.py @@ -308,6 +308,7 @@ def prepare_env(config_file: str = "config.yaml", path_root: str = _PATH_ROOT) - script += [AssistantCLI._install_pip(req) for req in reqs] script.append("pip list") + script += [f"cd {AssistantCLI._FOLDER_TESTS}"] script += AssistantCLI.before_commands(config_file, stage="test", as_append=True) return os.linesep.join(script) diff --git a/configs/Lightning-AI/metrics_torch-develop.yaml b/configs/Lightning-AI/metrics_torch-develop.yaml new file mode 100644 index 00000000..b85f6a19 --- /dev/null +++ b/configs/Lightning-AI/metrics_torch-develop.yaml @@ -0,0 +1,40 @@ +target_repository: + HTTPS: https://github.com/Lightning-AI/metrics.git + # checkout a particular branch or a tag + checkout: master + # define installing package extras + install_extras: + - all + - test + # install additional requirements from a file + requirements_file: requirements/audio_test.txt + # copy some test from the target repository + copy_tests: + - tests/unittests + +contact: + slack: + # Nicki Skafte + - USZ6EQ8A2 + # Justus Schock + - U010XFPFETH + +dependencies: + - name: torch + install_flags: + - "-f https://download.pytorch.org/whl/nightly/torch_nightly.html" + - "--pre" + +# running before installing your project +before_test: + - wget https://pl-public-data.s3.amazonaws.com/metrics/data.zip + - unzip -o data.zip + - mv _data tests/ + +testing: + # additional pytest arguments + pytest_args: --timeout=120 + +runtimes: + - {os: "ubuntu-22.04", python: "3.9"} +# - {os: "macOS-12", python: "3.9"}