From 50c931cffba7a8d2695702391d1eb6716ddaeea2 Mon Sep 17 00:00:00 2001 From: IanCa Date: Mon, 24 Jun 2024 18:40:19 -0500 Subject: [PATCH] Simplify windows test script --- .github/workflows/ci.yaml | 76 +-------------------------------------- 1 file changed, 1 insertion(+), 75 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ca12c538..4b5dc4be 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,29 +7,11 @@ on: branches: ["*"] jobs: - determine_version: - runs-on: windows-latest - outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} - steps: - - id: set-matrix - run: | - if [[ "${{ github.event_name }}" == 'push' && "${{ github.ref }}" == 'refs/heads/master' ]]; then - # Push to master branch - echo 'matrix=["3.8", "3.9", "3.10", "3.11"]' >> $GITHUB_OUTPUT - elif [[ "${{ github.event_name }}" == 'pull_request' && "${{ github.event.pull_request.base.ref }}" == 'master' ]]; then - # PR to master branch - echo 'matrix=["3.8", "3.9", "3.10", "3.11"]' >> $GITHUB_OUTPUT - else - echo 'matrix=["3.9"]' >> $GITHUB_OUTPUT - fi - build: - needs: determine_version strategy: matrix: platform: [windows-latest] - python-version: ${{fromJson(needs.determine_version.outputs.matrix)}} + python-version: ["3.10"] runs-on: ${{ matrix.platform }} @@ -81,59 +63,3 @@ jobs: with: name: code-coverage-report path: .coverage - - check-secret: - runs-on: windows-latest - outputs: - secrets-exist: ${{ steps.check-for-secrets.outputs.defined }} - steps: - - name: Check for Secret availability - id: check-for-secrets - # perform secret check & put boolean result as an output - shell: bash - run: | - if [ "${{ secrets.CC_TEST_REPORTER_ID }}" != '' ]; then - echo "defined=true" >> $GITHUB_OUTPUT; - else - echo "defined=false" >> $GITHUB_OUTPUT; - fi - - coverage: - name: Publish coverage - needs: [build, check-secret] - runs-on: windows-latest - if: needs.check-secret.outputs.secrets-exist == 'true' - - steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.9 - uses: actions/setup-python@v5 - with: - python-version: 3.9 - - - uses: actions/cache@v4 - with: - path: ${{ env.pythonLocation }} - key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('docs/requirements.txt') }} - - - name: Install dependencies - run: | - python -m pip install --upgrade --upgrade-strategy eager pip - pip install flake8 - pip install coverage - pip install -r requirements.txt - pip install -r docs/requirements.txt - - - name: Download a single artifact - uses: actions/download-artifact@v4 - with: - name: code-coverage-report - - - name: publish-coverages - with: - coverageCommand: coverage xml - debug: true - uses: paambaati/codeclimate-action@v8.0.0 - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} -