-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6691d86
commit a02c192
Showing
3 changed files
with
61 additions
and
29 deletions.
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: webviz-config-equinor | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
release: | ||
types: | ||
- published | ||
schedule: | ||
# Run CI daily and check that tests are working with latest dependencies | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
|
||
webviz-config-equinor: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8'] | ||
|
||
steps: | ||
- name: 📖 Checkout commit locally | ||
uses: actions/checkout@v2 | ||
|
||
- name: 🐍 Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: 📦 Install webviz-config-equinor with dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install . | ||
- name: 📦 Install test dependencies | ||
run: | | ||
pip install .[tests] | ||
- name: 🧾 List all installed packages | ||
run: pip freeze | ||
|
||
- name: 🕵️ Check code style & linting | ||
run: | | ||
black --check webviz_config_equinor setup.py | ||
- name: 🚢 Build and deploy Python package | ||
if: github.event_name == 'release' && matrix.python-version == '3.6' | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.pypi_webviz_token }} | ||
run: | | ||
python -m pip install --upgrade setuptools wheel twine | ||
python setup.py bdist_wheel | ||
twine upload dist/* |
This file was deleted.
Oops, something went wrong.
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