Skip to content

Commit 7a6e64e

Browse files
committed
Add GitHub action to test import after pip install
1 parent 9036ea0 commit 7a6e64e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/ci.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Python package
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.9]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install
20+
run: pip install .
21+
- name: Test imports work
22+
run: python scripts/test_import.py

scripts/test_import.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# A simple test to ensure that packages import correctly
2+
import taming.models.cond_transformer
3+
import taming.models.vqgan

0 commit comments

Comments
 (0)