Skip to content

Commit

Permalink
Add GitHub action to test import after pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Sep 28, 2021
1 parent ee37e02 commit fefe15a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Python package

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: pip install .
- name: Test imports work
run: python scripts/test_import.py
3 changes: 3 additions & 0 deletions scripts/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# A simple test to ensure that packages import correctly
import taming.models.cond_transformer
import taming.models.vqgan

0 comments on commit fefe15a

Please sign in to comment.