Skip to content

add docker-compose example part 1 #102

add docker-compose example part 1

add docker-compose example part 1 #102

Workflow file for this run

name: quality checks
on: push
jobs:
black-lint:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install -r requirements-dev.txt
- run: black . --check
flake8-lint:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install -r requirements-dev.txt
- run: flake8 .
pydocstyle-lint:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install -r requirements-dev.txt
- run: pydocstyle src
unit-test-python-310:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
needs: [black-lint, flake8-lint, pydocstyle-lint]
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install -r requirements.txt
- run: pip install -r requirements-dev.txt
- run: pip install -e .
- run: coverage run -a -m pytest tests/unit
unit-test-python-311:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
needs: [ black-lint, flake8-lint, pydocstyle-lint ]
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install -r requirements.txt
- run: pip install -r requirements-dev.txt
- run: pip install -e .
- run: coverage run -a -m pytest tests/unit
unit-test-python-312:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
needs: [ black-lint, flake8-lint, pydocstyle-lint ]
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: pip install -r requirements-dev.txt
- run: pip install -e .
- run: coverage run -a -m pytest tests/unit