Skip to content

get ready for JSFuture aggregation and caching #78

get ready for JSFuture aggregation and caching

get ready for JSFuture aggregation and caching #78

Workflow file for this run

name: Rust
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
WEIGHTS: "weights.txt"
BIND_URL: "127.0.0.1:3000"
DATA: "data.txt"
LEARNING_RATE: "0.1"
BATCH_SIZE: "128"
TRAIN_ITER: "3000"
TEST_ITER: "500"
OUTPUT_LEVEL: "1"
RUST_BACKTRACE: "1"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build
run: cargo build --verbose
- name: Run api tests
run: cargo test --verbose --lib api
- name: Run model tests
run: cargo test --verbose --lib model
- name: Run site tests
run: cargo test --verbose --lib site
images:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build Docker images
run: docker-compose build
- name: Push Docker images
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker-compose push