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

Initial setup of CI using GitHub Actions #109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

emiel
Copy link

@emiel emiel commented Jun 29, 2022

The objective here is to get a working CI workflow setup using GitHub Actions as a replacement for Travis CI. This is prep work for additional changes in the pipeline, i.e. sun setting older Django versions and supporting newer ones and any other changes.

I wanted to have the tests passing (using tox) under the supported Python versions (3.7, 3.8, 3.9). An example of a successful run is here: https://github.com/emiel/django-lifecycle/actions/runs/2585559370.

The "Lint" job is an example of what could be done and we'd need to decide on what exactly we want to enforce. I tried to mimic what was already there for Travis. It is allowed to fail at the moment and we should come back to this.

See the individual commit messages for more details.

Addresses issue #100.

Let me know if you need more info.

emiel added 3 commits June 29, 2022 22:01
- Ensure `django-capture-on-commit-callbacks` is installed which is
  needed for testing

- Fix typo in django32 config

- Add tox-gh-actions

- Remove unsupported python versions
- Remove usage of deprecated `assertEquals`.

- Fix test `test_delete_should_return_default_django_value` which was
  failing under Django 3.0 and 3.1. These older versions of Django
  include a key with count of zero in the return value. In addition the
  test has been rewritten to reflect intent to reflect intent, i.e.,
  test usage of `Model.delete()` instead of `QuerySet.delete()`.

  Introduced in: 2834786
@emiel
Copy link
Author

emiel commented Aug 20, 2022

Hi @rsinger86. I was away on holiday for a while. Was curious if you had a chance to look at this PR? Thanks!

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.

1 participant