From 62335b59d051c0f0ef587262af2771bc2c796c2f Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 4 Sep 2020 16:21:41 -0400 Subject: [PATCH] copy/paste most of the windows ci config, see what happens --- .github/workflows/ci.yaml | 55 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c899597..7f55283 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,60 @@ on: - "push" jobs: - unit-tests: + macos-unit-tests: + runs-on: "macos-latest" + strategy: + matrix: + python-version: + - "2.7" + + # Get tags not fetched by the checkout action, needed for auto-versioning. + - name: "Finish checkout" + run: | + git fetch --tags + + - name: "Upgrade Pip" + run: | + python -m pip install -v --upgrade pip + + - name: "Install CI Dependencies" + run: | + python -m pip install -v wheel coverage + + - name: "Install Test Dependencies" + run: | + python -m pip install -v -r test-requirements.txt + + - name: "Install ZKAPAuthorizer" + run: | + python -m pip install -v ./ + + - name: "Dump Python Environment" + run: | + pip freeze + + - name: "Run Tests" + env: + MAGIC_FOLDER_HYPOTHESIS_PROFILE: "ci" + run: | + python -m coverage run --debug=config -m twisted.trial _zkapauthorizer + + - name: "Convert Coverage" + run: | + echo "Files:" + dir + echo "Combining" + coverage combine + echo "Reporting" + coverage report + echo "Converting to XML" + coverage xml + + - uses: codecov/codecov-action@v1 + with: + file: "./coverage.xml" + + windows-unit-tests: runs-on: "windows-latest" strategy: matrix: -- GitLab