diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b2e643249d22011a104dea6ddc1ef61bac4e4304..71459469fc967e8e1b129e338d38bb7c9e8899aa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -625,10 +625,6 @@ wheel_packaging:
   artifacts:
     paths:
       - tangostationcontrol/dist/*.whl
-  before_script:
-    - pip3 install build
-    - pip3 install -r tangostationcontrol/test-requirements.txt
-    - pip3 install -r docker-compose/itango/lofar-requirements.txt
   script:
     - cd tangostationcontrol
-    - python -m build
+    - tox -e build
diff --git a/tangostationcontrol/test-requirements.txt b/tangostationcontrol/test-requirements.txt
index b8fe7099dac8cd826106e9f74136dd2c78f41bc3..dbd81d74d77b574e349b3bb7203284fc41b401cf 100644
--- a/tangostationcontrol/test-requirements.txt
+++ b/tangostationcontrol/test-requirements.txt
@@ -4,6 +4,8 @@
 
 asynctest>=0.13.0 # Apache-2.0
 bandit>=1.6.0 # Apache-2.0
+virtualenv>=20.16.0 # MIT
+build>=0.8.0 # MIT
 coverage>=5.2.0 # Apache-2.0
 doc8>=0.8.0 # Apache-2.0
 flake8>=3.8.0 # MIT
diff --git a/tangostationcontrol/tox.ini b/tangostationcontrol/tox.ini
index a5e8e0736025f99b7a200c765a603c9d0a58cff4..a380e29a0f102b7e6d1143d41d654d69fc8bcd5e 100644
--- a/tangostationcontrol/tox.ini
+++ b/tangostationcontrol/tox.ini
@@ -101,6 +101,10 @@ commands =
     {envpython} -m xenon --version
     {envpython} -m xenon tangostationcontrol -b B -m A -a A -i libhdbpp-python
 
+[testenv:build]
+usedevelop = False
+commands = {envpython} -m build
+
 [testenv:docs]
 envdir = {toxworkdir}/docs
 deps =