2022-05-03 16:05:00 +02:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-05-07 18:42:14 +02:00
|
|
|
branches: [ main, dev ]
|
2022-05-03 16:05:00 +02:00
|
|
|
pull_request:
|
2022-05-07 18:42:14 +02:00
|
|
|
branches: [ main, dev ]
|
2022-05-03 16:05:00 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-05-03 16:10:41 +02:00
|
|
|
test:
|
2022-05-03 16:05:00 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
|
|
- uses: actions/checkout@v3
|
2022-05-18 17:28:18 +02:00
|
|
|
|
2022-05-03 16:05:00 +02:00
|
|
|
- name: Switch to Current Branch
|
|
|
|
run: git checkout ${{ env.BRANCH }}
|
2022-05-16 20:36:41 +02:00
|
|
|
|
|
|
|
- run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y graphviz
|
2022-05-18 17:28:18 +02:00
|
|
|
|
2022-05-03 16:05:00 +02:00
|
|
|
- name: Setup Python 3.10.4
|
|
|
|
uses: actions/setup-python@v3
|
|
|
|
with:
|
|
|
|
python-version: '3.10.4'
|
2022-05-18 17:28:18 +02:00
|
|
|
|
2022-05-03 16:05:00 +02:00
|
|
|
- name: Validate Test Files
|
|
|
|
run: |
|
|
|
|
docker-compose -f tests/in/000001.yaml config -q
|
|
|
|
docker-compose -f tests/in/000010.yaml config -q
|
|
|
|
docker-compose -f tests/in/000011.yaml config -q
|
|
|
|
docker-compose -f tests/in/000100.yaml config -q
|
|
|
|
docker-compose -f tests/in/000101.yaml config -q
|
|
|
|
docker-compose -f tests/in/000110.yaml config -q
|
|
|
|
docker-compose -f tests/in/000111.yaml config -q
|
|
|
|
docker-compose -f tests/in/001000.yaml config -q
|
|
|
|
docker-compose -f tests/in/001001.yaml config -q
|
|
|
|
docker-compose -f tests/in/001010.yaml config -q
|
|
|
|
docker-compose -f tests/in/001011.yaml config -q
|
|
|
|
docker-compose -f tests/in/001100.yaml config -q
|
|
|
|
docker-compose -f tests/in/001101.yaml config -q
|
|
|
|
docker-compose -f tests/in/001110.yaml config -q
|
|
|
|
docker-compose -f tests/in/001111.yaml config -q
|
|
|
|
docker-compose -f tests/in/010000.yaml config -q
|
|
|
|
docker-compose -f tests/in/010001.yaml config -q
|
|
|
|
docker-compose -f tests/in/010010.yaml config -q
|
|
|
|
docker-compose -f tests/in/010011.yaml config -q
|
|
|
|
docker-compose -f tests/in/010100.yaml config -q
|
|
|
|
docker-compose -f tests/in/010101.yaml config -q
|
|
|
|
docker-compose -f tests/in/010110.yaml config -q
|
|
|
|
docker-compose -f tests/in/010111.yaml config -q
|
|
|
|
docker-compose -f tests/in/011000.yaml config -q
|
|
|
|
docker-compose -f tests/in/011001.yaml config -q
|
|
|
|
docker-compose -f tests/in/011010.yaml config -q
|
|
|
|
docker-compose -f tests/in/011011.yaml config -q
|
|
|
|
docker-compose -f tests/in/011100.yaml config -q
|
|
|
|
docker-compose -f tests/in/011101.yaml config -q
|
|
|
|
docker-compose -f tests/in/011110.yaml config -q
|
|
|
|
docker-compose -f tests/in/011111.yaml config -q
|
|
|
|
docker-compose -f tests/in/100000.yaml config -q
|
|
|
|
docker-compose -f tests/in/100001.yaml config -q
|
|
|
|
docker-compose -f tests/in/100010.yaml config -q
|
|
|
|
docker-compose -f tests/in/100011.yaml config -q
|
|
|
|
docker-compose -f tests/in/100100.yaml config -q
|
|
|
|
docker-compose -f tests/in/100101.yaml config -q
|
|
|
|
docker-compose -f tests/in/100110.yaml config -q
|
|
|
|
docker-compose -f tests/in/100111.yaml config -q
|
|
|
|
docker-compose -f tests/in/101000.yaml config -q
|
|
|
|
docker-compose -f tests/in/101001.yaml config -q
|
|
|
|
docker-compose -f tests/in/101010.yaml config -q
|
|
|
|
docker-compose -f tests/in/101011.yaml config -q
|
|
|
|
docker-compose -f tests/in/101100.yaml config -q
|
|
|
|
docker-compose -f tests/in/101101.yaml config -q
|
|
|
|
docker-compose -f tests/in/101110.yaml config -q
|
|
|
|
docker-compose -f tests/in/101111.yaml config -q
|
|
|
|
docker-compose -f tests/in/110000.yaml config -q
|
|
|
|
docker-compose -f tests/in/110001.yaml config -q
|
|
|
|
docker-compose -f tests/in/110010.yaml config -q
|
|
|
|
docker-compose -f tests/in/110011.yaml config -q
|
|
|
|
docker-compose -f tests/in/110100.yaml config -q
|
|
|
|
docker-compose -f tests/in/110101.yaml config -q
|
|
|
|
docker-compose -f tests/in/110110.yaml config -q
|
|
|
|
docker-compose -f tests/in/110111.yaml config -q
|
|
|
|
docker-compose -f tests/in/111000.yaml config -q
|
|
|
|
docker-compose -f tests/in/111001.yaml config -q
|
|
|
|
docker-compose -f tests/in/111010.yaml config -q
|
|
|
|
docker-compose -f tests/in/111011.yaml config -q
|
|
|
|
docker-compose -f tests/in/111100.yaml config -q
|
|
|
|
docker-compose -f tests/in/111101.yaml config -q
|
|
|
|
docker-compose -f tests/in/111110.yaml config -q
|
|
|
|
docker-compose -f tests/in/111111.yaml config -q
|
2022-05-18 17:28:18 +02:00
|
|
|
|
2022-05-08 10:11:49 +02:00
|
|
|
- name: Setup Poetry
|
|
|
|
uses: Gr1N/setup-poetry@v7
|
|
|
|
with:
|
|
|
|
poetry-version: 1.1.7
|
2022-05-08 16:33:43 +02:00
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
poetry install --no-root
|
2022-05-08 10:11:49 +02:00
|
|
|
|
2022-05-18 17:33:56 +02:00
|
|
|
- name: Execute pre-commit
|
2022-05-03 16:05:00 +02:00
|
|
|
run: |
|
2022-05-18 17:33:56 +02:00
|
|
|
poetry run python -m pre_commit run --all-files --show-diff-on-failure
|
|
|
|
|
|
|
|
- name: Run Pytest
|
|
|
|
run: |
|
2022-05-19 09:29:37 +02:00
|
|
|
poetry run python -m pytest --cov=compose_viz tests/ --tb=short
|