Skip to content

Commit

Permalink
added CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fratajcz committed Sep 25, 2024
1 parent e62426e commit 6a86b19
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: build

on:
push:
branches: [ "latest" ]
pull_request:
branches: [ "latest" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: "3.10"

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.0.0+cpu.html
pip install -f requirements.yaml
pip install .
- name: Test with unittest
run: |
python -m unittest speos/tests/test_*.py

0 comments on commit 6a86b19

Please sign in to comment.