Skip to content

Commit

Permalink
rename ci file and add a test job in it
Browse files Browse the repository at this point in the history
  • Loading branch information
tztsai committed Mar 1, 2024
1 parent 407db2a commit 1a70414
Showing 1 changed file with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,30 @@ jobs:
run: |
pydocstyle --convention=numpy $(git ls-files *.py)
- name: Smoke testing of PyTorch model
if: always()
run: |
python torch_nets/test_python_net.py
test:
needs: code_quality
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Add conda to system path
if: always()
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
if: always()
run: |
conda env update --file requirements.conda.yaml --name base
- name: Smoke testing of PyTorch model
if: always()
run: |
python torch_nets/test_python_net.py

0 comments on commit 1a70414

Please sign in to comment.