fix torch warning #245
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: Testing | |
# Run this workflow every time a new commit pushed to your repository | |
on: push | |
jobs: | |
tester: | |
name: Test the code | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Python setup | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: 'x64' | |
- name: Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pytest | |
pip install pytest-cov | |
pip install coveralls | |
pip install scikit-learn torch | |
pip install . | |
- name: Fetching data | |
run: | | |
cd tests | |
mkdir templ_data | |
cd templ_data | |
wget -q -r -nd -np https://people.ast.cam.ac.uk/~koposov/files/rvspecfit_files/v2401/ | |
mv small_phoenix.tar.gz ../ | |
cd .. | |
tar xfz small_phoenix.tar.gz | |
cd .. | |
- name: Testing | |
run: | | |
pytest --cov=rvspecfit | |
- name: Coveralls | |
if: ${{ success() }} | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |