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

Setup Github Actions #290

Closed
wants to merge 2 commits into from
Closed

Conversation

andyzickler
Copy link
Contributor

@andyzickler andyzickler commented Jan 8, 2022

Closes #278
Please review and merge #289 first as this builds on that.

I created a simple GitHub action to run tox in python 3.8, 3.9 and 3.10. It currently only runs the flake8 command in python 3.8 because the other versions were causing an error that I don't understand yet. I think it might be possible to also run flake8 as a separate GitHub action. I'll look into it.

Let me know what you think and if you have any suggestions / changes. This is my first time working with GitHub actions, but so far it seems pretty easy.

This uses the tox-gh-actions plugin to help with the multiple python versions.

* Adds django 3.2 and 4.0 to tox
* Setup tox to display all warnings
* Fixes the following warnings:

RemovedInDjango40Warning: django-admin.py is deprecated in favor of django-admin.

tests/urls.py:11: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
  url(r'^ajax_lookups/', include(ajax_select_urls)),

tests.Author: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
    HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.

RemovedInDjango41Warning: 'ajax_select' defines default_app_config = 'ajax_select.apps.AjaxSelectConfig'. Django now detects this configuration automatically. You can remove default_app_config.
@andyzickler
Copy link
Contributor Author

You can see the action run on a test PR I made on my own fork https://github.com/andyzickler/django-ajax-selects/actions/runs/1670368955

Here's the run with the failed flake8 command https://github.com/andyzickler/django-ajax-selects/runs/4746163178?check_suite_focus=true

@crucialfelix
Copy link
Owner

I merged #289 and then rebased this, making a new PR #292 and merged that.

Doing a release right now. Thanks so much and sorry for the delay!

@andyzickler
Copy link
Contributor Author

Great! I'm so happy this works

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.

Travis no longer running tests
2 participants