Skip to content

Commit

Permalink
Refactor requirements installation and dependabot config (#144)
Browse files Browse the repository at this point in the history
* refactor requirements installation and dependabot

* fix dockerfile

* fix dockerfile (2)

* remove unneded neuro-sdk installation in CI
  • Loading branch information
YevheniiSemendiak authored Aug 3, 2021
1 parent 91e621a commit c9250e8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 19 deletions.
16 changes: 12 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ updates:
interval: daily
time: "03:00"
open-pull-requests-limit: 10
assignees:
- anayden
- artemlops
- YevheniiSemendiak
reviewers:
- neuro-inc/mlops
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "03:00"
reviewers:
- neuro-inc/mlops
open-pull-requests-limit: 10
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
reviewers:
- neuro-inc/mlops
allow:
- dependency-type: "all"
16 changes: 12 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Continuous Integration

on:
pull_request:
release:
types: [published]
push:
branches: [master]
tags: [v*.*.*]
pull_request:
branches: [master]
pull_request_target:
branches: [master]

jobs:
build:
if: |
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]')
env:
DOCKER_SERVER: docker.io
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -23,6 +29,8 @@ jobs:
steps:
- name: Checkout commit
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install python
uses: actions/setup-python@v2
Expand All @@ -33,7 +41,7 @@ jobs:
run: |
python -m venv venv
source venv/bin/activate
pip install -U neuro-cli packaging neuro-sdk
pip install -U neuro-cli
- name: Configure environment
run: |
Expand Down
3 changes: 3 additions & 0 deletions requirements/neuro.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
neuro-cli==21.7.29
neuro-flow==21.7.9
neuro-extras==21.7.23
17 changes: 6 additions & 11 deletions targets/python37-jupyter-pytorch-tensorflow-jupyterlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,6 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
tensorboardX \
&& \

# ==================================================================
# neuromation
# ------------------------------------------------------------------

$PIP_INSTALL \
neuro-cli==21.6.3 \
neuro-flow==21.6.2 \
neuro-extras==21.3.19 \
packaging \
&& \

# ==================================================================
# wandb
# ------------------------------------------------------------------
Expand Down Expand Up @@ -237,6 +226,12 @@ PermitEmptyPasswords yes\n" > /etc/ssh/sshd_config
# ssh port
EXPOSE 22

# ==================================================================
# Neu.ro packages
# ------------------------------------------------------------------
COPY requirements/neuro.txt /tmp/neuro.txt
RUN python -m pip --no-cache-dir install --upgrade -r /tmp/neuro.txt && \
rm /tmp/neuro.txt
# ==================================================================
# config & cleanup
# ------------------------------------------------------------------
Expand Down

0 comments on commit c9250e8

Please sign in to comment.