Skip to content

Commit

Permalink
Cleanup workflow for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Eve-ning committed Nov 22, 2023
1 parent b886c3e commit 130cb5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Force change owner
run: |
chown -R root: ~
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
Expand All @@ -31,7 +32,7 @@ jobs:
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
pip3 install torch torchvision torchaudio
- name: Set up gcloud
id: 'auth'
Expand All @@ -52,7 +53,7 @@ jobs:
- name: Run Model Training
run: |
python3 -m tests.model_tests.chestnut_dec_may.main
python3 -m tests.model_tests.chestnut_dec_may.main
- name: Comment results via CML
run: |
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python CI

on:
workflow_dispatch:

# push:
# branches: [ "main" ]
# pull_request:
push:
branches: [ "main" ]
pull_request:

jobs:
build:
Expand Down Expand Up @@ -36,7 +31,7 @@ jobs:
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'

# We don't necessarily need to install the CUDA version of torch, so we'll do with cpu
# We don't necessarily need to install the CUDA version of torch, so we'll do with cpu
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -54,5 +49,3 @@ jobs:
- name: Test with pytest
run: |
pytest

0 comments on commit 130cb5c

Please sign in to comment.