Skip to content

Commit

Permalink
Merge pull request #65 from h4ndzdatm0ld/release-v2.0.0
Browse files Browse the repository at this point in the history
Release v2.0.0
  • Loading branch information
h4ndzdatm0ld authored Mar 15, 2023
2 parents 96964f3 + 6b563c8 commit d4104b3
Show file tree
Hide file tree
Showing 80 changed files with 1,844 additions and 2,613 deletions.
5 changes: 0 additions & 5 deletions .bandit.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ LICENSE
**/.vscode/
invoke*.yml
tasks.py
clab-files
clab-*
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

39 changes: 24 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
---
name: "CI"

on:
push:
branches: ["*"]
pull_request:
branches: ["develop", "master"]
on: # yamllint disable-line rule:truthy rule:comments
- "push"
- "pull_request"

jobs:
linters:
name: linters
name: "Code Quality - Linting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -23,25 +20,25 @@ jobs:
- name: Lint & Code Format
run: |
echo 'Running Flake8' && \
poetry run flake8 . && \
echo 'Rnning Ruff' && \
poetry run ruff . && \
echo 'Running Black' && \
poetry run black --check --diff . && \
echo 'Running Yamllint' && \
poetry run yamllint . && \
echo 'Running pydocstyle' && \
poetry run pydocstyle . && \
echo 'Running Bandit' && \
poetry run bandit --recursive ./ --configfile .bandit.yml && \
poetry run bandit --recursive ./ --configfile pyproject.toml && \
echo 'Running MyPy' && \
poetry run mypy .
test:
name: Testing on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
needs:
- "linters"
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Setup python
Expand All @@ -50,8 +47,20 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Start NETCONF Sysrepo container
run: docker-compose up -d netconf_sysrepo
- name: "Install Containerlab"
run: |
sudo bash -c "$(curl -sL https://get.containerlab.dev)"
- name: "Start Arista CEOS"
run: "sudo containerlab deploy -t clab-files/clab-arista.yml"

- name: "Wait for Arista CEOS to be ready"
uses: "jakejarvis/wait-action@master"
with:
time: "10"

- name: "Change ownership of Containerlab files"
run: "sudo chown -R $USER clab-arista-testing.yml"

- name: Install dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ docs/public/*
# containerlab
.clab-topo-netconf.yml.bak
clab-clab-topo-netconf.yml/
.clab-arista.yml.bak
clab-arista-testing.yml
test/test_data/schemas
11 changes: 0 additions & 11 deletions .pydocstyle.ini

This file was deleted.

Loading

0 comments on commit d4104b3

Please sign in to comment.