Fix 9.0.x docker #289
Workflow file for this run
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
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} |