-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from FR-DC/0.0.5
0.0.5
- Loading branch information
Showing
15 changed files
with
683 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Model Training | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: self-hosted | ||
container: | ||
image: docker://ghcr.io/iterative/cml:0-dvc2-base1-gpu | ||
volumes: | ||
- /home/runner/work/frdc-ml/_github_home:/root | ||
env: | ||
AGENT_TOOLSDIRECTORY: "/root/venv" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Force change owner | ||
run: | | ||
chown -R root: ~ | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install via exported requirements.txt | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest poetry | ||
poetry export --with dev --without-hashes -o requirements.txt | ||
pip3 install -r requirements.txt | ||
pip3 install torch torchvision torchaudio | ||
- name: Set up gcloud | ||
id: 'auth' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
credentials_json: '${{ secrets.FRDC_DOWNLOAD_KEY }}' | ||
|
||
- name: Set up Cloud SDK | ||
uses: 'google-github-actions/setup-gcloud@v1' | ||
|
||
- name: Set up WandB | ||
run: | | ||
echo "WANDB_API_KEY=${{ secrets.WANDB_API_KEY }}" >> $GITHUB_ENV | ||
- name: Add src as PYTHONPATH | ||
run: | | ||
echo "PYTHONPATH=src" >> $GITHUB_ENV | ||
- name: Run Model Training | ||
run: | | ||
python3 -m tests.model_tests.chestnut_dec_may.main | ||
- name: Comment results via CML | ||
run: | | ||
cml comment update \ | ||
--target=pr \ | ||
--token ${{ secrets.GITHUB_TOKEN }} \ | ||
tests/model_tests/chestnut_dec_may/report.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.