Get rid of deprecation warning #89
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: CI test | |
on: | |
pull_request: | |
types: [labeled] | |
jobs: | |
ci-test: | |
if: ${{ github.event.label.name == 'ci-test' }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: install dependencies and run tests | |
run: | | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt-get update | |
sudo apt install sox | |
sudo apt-get install -y python3.8 | |
sudo apt-get install -y python3.8-dev | |
sudo apt-get install -y python3.8-venv | |
python3.8 -m venv venv | |
source venv/bin/activate | |
pip install -U pip | |
pip install -e . | |
pip install torch torchvision torchaudio | |
pytest |