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

adding metrics with torch #72

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 4 additions & 2 deletions .github/workflows/ci_compatible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions _actions/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
40 changes: 40 additions & 0 deletions configs/Lightning-AI/metrics_torch-develop.yaml
Original file line number Diff line number Diff line change
@@ -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
Borda marked this conversation as resolved.
Show resolved Hide resolved
# 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"}