Obsolete flask #48
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
# This workflow runs | |
# - anytime new commits are added to the master branch | |
# - pull requests with target "master" are supplied. | |
# | |
# It simply runs code linting and executes unittest. | |
name: continuous-integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- uses: psf/black@stable | |
with: | |
options: -l 79 --check --diff | |
src: . | |
build_eidaws_federator: | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8] | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
(cd eidaws.federator && python -m pip install -r requirements/test.txt) | |
- name: Test with pytest | |
run: | | |
pytest eidaws.utils eidaws.federator | |
build_eidaws_stationlite: | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.6, 3.7, 3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install numpy | |
(cd eidaws.stationlite && python -m pip install -r requirements/test.txt) | |
- name: Test with pytest | |
run: | | |
pytest eidaws.utils eidaws.stationlite | |
build_eidaws_endpoint_proxy: | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
(cd eidaws.endpoint_proxy && python -m pip install -r requirements/test.txt) | |
- name: Test with pytest | |
run: | | |
pytest eidaws.utils eidaws.endpoint_proxy |