-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix import errors without dev dependencies (#214)
* add ci test for import without dev dependencies * fix tensorflow import error
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,34 @@ jobs: | |
|
||
- name: Test Examples | ||
run: bash scripts/test-examples.sh | ||
|
||
test-import: | ||
name: Test Import without Dev Dependencies | ||
if: ${{ !contains(github.event.pull_request.title, 'WIP') }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# python-version: [3.9] | ||
python-version: [3.7, 3.8, 3.9] | ||
steps: | ||
- name: Check out the code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
version: 1.1.4 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
poetry config virtualenvs.create false | ||
poetry install --no-dev | ||
- name: Import Elegy | ||
run: python -c "import elegy" |
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