Skip to content

Update How to use to explain how to build and run the dockers locally #290

Update How to use to explain how to build and run the dockers locally

Update How to use to explain how to build and run the dockers locally #290

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: nosetests
get_json_versions:
runs-on: ubuntu-latest
steps:
# Fetch versions to work for images
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- id: set-versions
run: echo "::set-output name=versions::$(./get_json_versions.py)"
outputs:
versions: ${{ steps.set-versions.outputs.versions }}
build_images:
runs-on: ubuntu-latest
needs: get_json_versions
strategy:
fail-fast: false
matrix:
ps-version: ${{ fromJson(needs.get_json_versions.outputs.versions) }}
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: docker build images/${version}