Skip to content

Commit

Permalink
[Feat] Add automated CI tests
Browse files Browse the repository at this point in the history
Co-authored-by: Chuanbo Hua <[email protected]>
Co-authored-by: Laurin Luttmann <[email protected]>
Co-authored-by: Jiwoo Son <[email protected]>
  • Loading branch information
4 people committed Sep 9, 2024
1 parent f2a7ad0 commit daea56f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ['3.12']
defaults:
run:
shell: bash
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v3
with:
path: ~/.cache
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Run pytest
run: pytest tests/*.py

0 comments on commit daea56f

Please sign in to comment.