[API] FGNet
interface changes to match VisionDataset
#123
Workflow file for this run
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
name: "Run Tests" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "tutorials/**" | |
- "dlordinal/**" | |
- ".github/workflows/**" | |
pull_request: | |
branches: | |
- main | |
- development | |
paths: | |
- "tutorials/**" | |
- "dlordinal/**" | |
- ".github/workflows/**" | |
jobs: | |
tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install codecov | |
pip install pytest-cov | |
pip install . | |
- name: Run tests | |
run: | | |
pytest -v | |
codecov: | |
needs: tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install codecov | |
pip install pytest-cov | |
pip install . | |
- name: Run tests for codecov | |
run: | | |
pytest --cov=dlordinal --cov-report=xml | |
timeout-minutes: 20 | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |