Skip to content

Commit

Permalink
Tidy up CI / tox configuration
Browse files Browse the repository at this point in the history
The default environments for `tox` are now a minimal set that can be run
locally by contributors. It excludes environments which require an
alternative Python or an external database service.
  • Loading branch information
WhyNotHugo committed Sep 16, 2024
1 parent 731f903 commit f27b258
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 28 deletions.
23 changes: 10 additions & 13 deletions .builds/alpine-py311.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,24 @@ tasks:
sudo sed -i 's/skip-networking/skip-grant-tables/' /etc/my.cnf.d/mariadb-server.cnf
sudo /etc/init.d/mariadb setup
sudo service mariadb start
- tox-mariadb: |
- tox-sqlite: |
cd django-afip
tox -e py-mysql
tox -e sqlite
- tox-django42-mariadb: |
cd django-afip
tox -e py-django42-mysql
- tox-postgres: |
tox -e django42-mysql
- tox-django50-mariadb: |
cd django-afip
tox -e py-postgres
tox -e django50-mysql
- tox-django42-postgres: |
cd django-afip
tox -e py-django42-postgres
- tox-sqlite: |
tox -e django42-postgres
- tox-django50-postgres: |
cd django-afip
tox -e py-sqlite
- tox-mypy: |
tox -e django50-postgres
- lint: |
cd django-afip
tox -e mypy
tox -e mypy,ruff,vermin
- tox-docs: |
cd django-afip
tox -e docs
- tox-live: |
cd django-afip
tox -e live
24 changes: 14 additions & 10 deletions .builds/alpine-py312.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,28 @@ tasks:
sudo sed -i 's/skip-networking/skip-grant-tables/' /etc/my.cnf.d/mariadb-server.cnf
sudo /etc/init.d/mariadb setup
sudo service mariadb start
- tox-mariadb: |
- tox-sqlite: |
cd django-afip
tox -e py-mysql
tox -e sqlite
- tox-django42-mariadb: |
cd django-afip
tox -e py-django42-mysql
- tox-postgres: |
tox -e django42-mysql
- tox-django50-mariadb: |
cd django-afip
tox -e py-postgres
tox -e django50-mysql
- tox-django42-postgres: |
cd django-afip
tox -e py-django42-postgres
- tox-sqlite: |
tox -e django42-postgres
- tox-django50-postgres: |
cd django-afip
tox -e py-sqlite
- tox-mypy: |
tox -e django50-postgres
- lint: |
cd django-afip
tox -e mypy
tox -e mypy,ruff,vermin
- tox-docs: |
cd django-afip
tox -e docs
- tox-live: |
cd django-afip
tox -e live
6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
[tox]
envlist =
py{39,310,311}-django{42,50}-postgres
py311-django{42,50}-mysql,
sqlite,
live
envlist = sqlite,mypy,docs,ruff,vermin,

[testenv]
extras =
Expand Down

0 comments on commit f27b258

Please sign in to comment.