Remove old texts #11
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 | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pre-commit | |
- name: Lint | |
run: pre-commit run --show-diff-on-failure | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 3 | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
# activate-environment should be the same name as in environment.yml | |
activate-environment: matten | |
environment-file: environment.yml | |
- name: Install package | |
shell: bash -l {0} | |
run: | | |
# Multiple channels having pytorch. Specifying it in environment.yml | |
mamba install pytorch>=2.0.0 -c pytorch | |
mamba install pyg>=2.0.0 pytorch-scatter -c pyg -c conda-forge | |
mamba install lightning torchmetrics -c conda-forge | |
pip install -e . | |
# - name: Lint with flake8 | |
# shell: bash -l {0} | |
# run: | | |
# # stop the build if there are Python syntax errors or undefined names | |
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
shell: bash -l {0} | |
run: | | |
cd tests | |
pytest |