Skip to content

Commit

Permalink
Merge branch 'develop' into tgt_type
Browse files Browse the repository at this point in the history
  • Loading branch information
the-glu authored May 2, 2023
2 parents 37631fe + 578f1ba commit 12780bb
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 188 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/flake8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: flake8 lint
on:
push:
pull_request:

jobs:
flake8-lint:
runs-on: ubuntu-20.04
name: flake8 lint
steps:
- name: Setup python for flake8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- uses: actions/checkout@v3
- name: Install tox
run: python -m pip install tox
- name: Setup flake8
run: tox --notest -e flake8
- name: Run flake8
run: tox -e flake8
42 changes: 42 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: test
on:
push:
pull_request:
schedule:
- cron: "0 8 * * *"

jobs:
test:
name: test ${{ matrix.py }} - ${{ matrix.netapi }} - ${{ matrix.salt }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
py:
- "3.7"
- "3.8"
netapi:
- "cherrypy"
- "tornado"
salt:
- "v3004.2"
- "v3005.1"
- "master"
steps:
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- uses: actions/checkout@v3
- name: Install setuptools_scm
run: python -m pip install setuptools_scm
- name: Install tox
run: python -m pip install tox
- name: Install dependencies
run: sudo apt update && sudo apt install -y libc6-dev libffi-dev gcc git openssh-server libzmq3-dev
env:
DEBIAN_FRONTEND: noninteractive
- name: Setup tests
run: tox --notest -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}
- name: Run tests
run: tox -e py${{ matrix.py }}-${{ matrix.netapi }}-${{ matrix.salt }}
Loading

0 comments on commit 12780bb

Please sign in to comment.