Upload test run artifacts.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 04e258c..a5f7168 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,6 +18,7 @@
         cat environment.yml
         # FIXME: #65 - Replace with `make-env`
         ./prepareenv.sh
+
     - name: Test
       run: |
         source "$HOME/miniconda/etc/profile.d/conda.sh"
@@ -26,3 +27,9 @@
         python --version
         which tox
         TOXENV="$(echo py${{ matrix.python-version }} | sed -e's/\.//g')" tox
+    - name: Upload test results
+      uses: actions/upload-artifact@v2
+      with:
+        name: test-results-${{ matrix.python-version }}
+        path: junit/test-results-${{ matrix.python-version }}.xml
+      if: ${{ always() }}
diff --git a/tox.ini b/tox.ini
index 7f11013..1b9d06f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,7 +20,7 @@
     python --version
     python setup.py check -m -r -s
     flake8 setup.py v2x
-    pytest --doctest-modules -vv v2x
+    pytest --doctest-modules -vv v2x --junitxml=junit/test-results-{envname}.xml
     pytest -vv
 [flake8]
 exclude = .tox,*.egg,build,data