Skip to content

Run tests automatically on GitHub - #22

Open
Josh-Woodcock wants to merge 2 commits into
mainfrom
21-ci
Open

Josh-Woodcock wants to merge 2 commits into
mainfrom
21-ci

Conversation

@Josh-Woodcock

@Josh-Woodcock Josh-Woodcock commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #21.

Adds a GitHub Actions workflow based on ro-crate-py's. It runs pytest on pushes and PRs to main and development, on Python 3.11 to 3.15 (Linux).

Also adds tests/test_crate.py, a small test that a new crate conforms to the Five Safes profile. main has no tests yet, and pytest fails when it finds none.

Not included yet: Mac/Windows and the flake8 style check (see #21).

@douglowe douglowe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

couple of small changes - but let's get the RSE template applied before we merge this

Comment thread .github/workflows/python-package.yml Outdated
# Install the library and run the tests on each supported Python version.
# Based on ro-crate-py's workflow (Linux only; no flake8 yet, see #21).

name: Python package

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you make the title, and file name, reflect the workflow more closely?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Renamed to test.yml / "Run Tests", to match the toolkit.

- main
pull_request:
branches:
- main

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should add develop here - once we have implemented our RSE template changes.

Also, it makes a bit of sense to retain the push section, but ideally no-one will ever be pushing to these branches.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added development, to match the RSE template, and kept push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run tests automatically on GitHub

2 participants