Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DeepInverse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hailu, Dawit
DeepInverse
Commits
646f000e
Commit
646f000e
authored
4 years ago
by
Jirka Borovec
Browse files
Options
Downloads
Patches
Plain Diff
add CI
parent
c260b650
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/install-pkg.yml
+68
-0
68 additions, 0 deletions
.github/workflows/install-pkg.yml
with
68 additions
and
0 deletions
.github/workflows/install-pkg.yml
0 → 100644
+
68
−
0
View file @
646f000e
name
:
Install pkg
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on
:
# Trigger the workflow on push or pull request,
# but only for the master branch
push
:
branches
:
-
master
pull_request
:
branches
:
-
master
jobs
:
pkg-check
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@master
-
uses
:
actions/setup-python@v2
with
:
python-version
:
3.7
-
name
:
Check package
run
:
|
pip install check-manifest
check-manifest
python setup.py check --metadata --strict
-
name
:
Create package
run
:
|
pip install --upgrade setuptools wheel
python setup.py sdist
-
name
:
Verify package
run
:
|
pip install twine==1.13.0
twine check dist/*
python setup.py clean
pkg-install
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-20.04
,
macOS-10.15
]
# , windows-2019
python-version
:
[
3.7
,
3.8
]
steps
:
-
uses
:
actions/checkout@master
-
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Create package
run
:
|
python setup.py sdist
-
name
:
Install package
run
:
|
pip install virtualenv
virtualenv vEnv
source vEnv/bin/activate
pip install dist/*
cd .. & python -c "import pytorch_lightning as pl ; print(pl.__version__)"
cd .. & python -c "import research_mnist ; print(research_mnist.__version__)"
deactivate
rm -rf vEnv
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment