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

ci: add main database check action #102

Merged
merged 1 commit into from
Mar 4, 2023
Merged

ci: add main database check action #102

merged 1 commit into from
Mar 4, 2023

Conversation

rickstaa
Copy link
Collaborator

@rickstaa rickstaa commented Mar 4, 2023

Describe your changes

This pull request adds the main_databases_check.yml action. This action runs when any of the main database files (i.e. plane-alert-db.csv, plane-alert-twitter-blocked.csv, plane-alert-pia.csv, plane-alert-ukraine.csv and plane_images.txt) is changed and checks:

  • Whether the changes in the pull requests results in valid CSVs.
  • Whether the databases contain duplicate ICAO numbers.
  • Whether the databases contain duplicate registration numbers.
  • Whether the databases contain valid URLs.

It looks like the plane-alert-db.csv already contains duplicate registration numbers (see #103) so I temporarily disabled this check:

# duplicateRegs(main_df) # NOTE: This is commented out because there are duplicates.

Checklist before requesting a review

  • I have performed a self-review of my code.

@rickstaa rickstaa force-pushed the automation branch 2 times, most recently from b427b90 to 3e03808 Compare March 4, 2023 21:15
@rickstaa rickstaa added enhancement New feature or request ci Continuous integration labels Mar 4, 2023
This commit adds the `check_main_databases` github action that is used
to check whether the main databases are correctly formatted. This action
checked whether:
- The databases don't contain duplicate ICAOs.
- The databases don't contain duplicate registration numbers.
- The databases don't contain incorrect urls.
@github-actions github-actions bot added the images Plane images label Mar 4, 2023
@rickstaa rickstaa linked an issue Mar 4, 2023 that may be closed by this pull request
@rickstaa rickstaa merged commit a899eb7 into main Mar 4, 2023
@rickstaa rickstaa deleted the automation branch March 4, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration enhancement New feature or request images Plane images
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The plane_images database contains duplicate ICAOs
1 participant