Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pipeline #131

Merged
merged 10 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
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
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}

- name: Run tests
run: uv run --with python-dateutil --with six test.py

Choose a reason for hiding this comment

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

Something is odd -- tests are failing, but appear to pass ....

And can we use pytest ? -- only 'cause I like it -- it give far more useful info on failure. I think that would take somethign like:

run: uv run --with python-dateutil --with six --with pytest pytest --pyargs bson

though I don't really know uv ...

Copy link
Member Author

Choose a reason for hiding this comment

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

Where's it failing?

Choose a reason for hiding this comment

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

I looked at the remove py2 PR, and is showed as passing, but it was failing, at least on py3.9.

https://github.com/py-bson/bson/actions/runs/12401626827/job/34621412735

But I've fixed that now -- so it all passes now.

(I also changed the test run to pytest in the workflow file in that PR -- maybe shouldn't have mixed and matched , but ...)


# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
check:
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

Loading