Github Actions: Tox with Nox replace + Safety check for all python versions
@@ -21,11 +21,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- pip install tox virtualenv
+ pip install nox virtualenv
- name: Lint
- run: "tox -e lint"
- - name: Safety
- run: "tox -e safety"
+ run: "nox -s lint"
build:
runs-on: ${{ matrix.os }}
strategy:
@@ -51,53 +49,41 @@ jobs:
- name: "ubuntu-py37"
python: "3.7"
os: ubuntu-latest
- tox_env: "py37"
- name: "ubuntu-py38"
python: "3.8"
os: ubuntu-latest
- tox_env: "py38"
- name: "ubuntu-py39"
python: "3.9"
os: ubuntu-latest
- tox_env: "py39"
- name: "ubuntu-py310"
python: "3.10"
os: ubuntu-latest
- tox_env: "py310"
- name: "macos-py37"
python: "3.7"
os: macos-latest
- tox_env: "py37"
- name: "macos-py38"
python: "3.8"
os: macos-latest
- tox_env: "py38"
- name: "macos-py39"
python: "3.9"
os: macos-latest
- tox_env: "py39"
- name: "macos-py310"
python: "3.10"
os: macos-latest
- tox_env: "py310"
- name: "windows-py37"
python: "3.7"
os: windows-latest
- tox_env: "py37"
- name: "windows-py38"
python: "3.8"
os: windows-latest
- tox_env: "py38"
- name: "windows-py39"
python: "3.9"
os: windows-latest
- tox_env: "py39"
- name: "windows-py310"
python: "3.10"
os: windows-latest
- tox_env: "py310"
steps:
- uses: actions/checkout@v3
@@ -108,9 +94,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- pip install tox virtualenv
- - name: Test build
- run: "tox -e ${{ matrix.tox_env }}-cov-report"
+ pip install nox virtualenv
+ - name: Project internals test build
+ run: "nox -p ${{ matrix.python }} -s tests"
+ - name: Project security test
+ run: "nox -p ${{ matrix.python }} -s safety_tests"
- name: Send coverage report to codeclimate
uses: paambaati/codeclimate-action@v3
with:
