Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,30 @@ on:
jobs:
build:
name: Test & Build
container:
# Run some matrix cases in a container. If `container-image` is blank, the
# job will run conventionally on the agent.
image: ${{ matrix.container-image }}
env:
PYTHON: ${{ matrix.python-version }}
runs-on: [ubuntu-20.04]
strategy:
# Finish the other builds even if one fails.
fail-fast: false
matrix:
python-version: ['2.7', '3.7', '3.8', '3.10']
runs-on: [ubuntu-20.04]
env:
PYTHON: ${{ matrix.python-version }}
include:
- python-version: '2.7'
container-image: python:2.7
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all history for setuptools_scm to be able to read tags

- uses: actions/setup-python@v4
# Only set up Python if we're running directly on an agent. If we're in
# a container, the image should already provide the intended Python.
if: '! matrix.container-image'
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -45,10 +57,11 @@ jobs:
if: matrix.python-version == '3.8'
with:
env_vars: PYTHON
fail_ci_if_error: true
# TODO: re-enable errors when rate limit is resolved?
# fail_ci_if_error: true
Comment on lines -48 to +61

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically this is still throwing an error uploading the coverage since we can only upload one batch of coverage data every hour or something? Until we can resolve that, let's not block changes on whether Codecov accepts our coverage data.

[2025-02-06T22:38:27.615Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 429 - {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 2427s."}

files: .coverage.${{ steps.pyenv.outputs.value }}.xml

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: matrix.python-version == '2.7' || matrix.python-version == '3.8'
with:
name: dist-${{ matrix.python-version }}
Expand All @@ -62,7 +75,7 @@ jobs:
id-token: write
if: github.event_name != 'pull_request'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

- name: Organize files for upload
run: |
Expand Down
Loading