Skip to content

Update main.yml for test #2

Update main.yml for test

Update main.yml for test #2

Workflow file for this run

name: WorkFlow
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest
pytest ./test/test_dog.py
- name: Run benchmarks
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
python ./benchmark/benchmark_dog.py