Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .github/workflows/run-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,36 @@ name: Tox testing
on:
push:
branches:
- stable/yoga-m3
- master
- stable/2026.1-m3
pull_request:
branches:
- stable/yoga-m3
- master

env:
VIRTUALENV_PIP: "20.2.3"
# VIRTUALENV_PIP: "20.2.3"
PYTHON_VERSION: '3.12'

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8]

steps:
- uses: actions/checkout@v2
- name: Setup python ${{ matrix.python-version }}
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: |
pip install tox
- name: Run Tox
run: "tox -e pep8,py38"
run: "tox -e py3"
pep8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Tox
run: pip install tox
- name: Run Tox pep8
run: "tox -e pep8"
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[tox]
envlist = py38
envlist = py3
minversion = 1.6
skipsdist = True

[testenv]
basepython = python3.8
basepython = python3.12
usedevelop = True
install_command = pip install -c {env:UPPER_CONSTRAINTS_FILE:https://raw.githubusercontent.com/sapcc/requirements/{env:OS_SAP_RELEASE}/upper-constraints.txt} -r requirements.txt -r test-requirements.txt -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
OS_SAP_RELEASE=stable/yoga-m3
OS_SAP_RELEASE=stable/2026.1-m3
passenv = TRAVIS
deps = git+https://github.com/sapcc/neutron@{env:OS_SAP_RELEASE}#egg=neutron
git+https://github.com/sapcc/networking-bgpvpn@{env:OS_SAP_RELEASE}#egg=networking_bgpvpn
Expand Down
Loading