update pie-datasets to 0.4.0 (#147) #339
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 workflow will install PyTorch for CPU and other Python dependencies and run unit tests and test for | |
# basic commands that are marked as "not slow" (in both cases). | |
name: tests | |
on: | |
pull_request: {} | |
push: | |
branches: main | |
tags: "*" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: show previous workflow conclusion | |
run: echo ${{ github.event.workflow_run.conclusion }} | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu | |
pip install -r requirements.txt | |
- name: Run tests with coverage | |
run: | | |
pytest -k "not slow" --cov --cov-report term-missing |