-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from gradedSystem/master
Re-Updating the codebase of airport-codes
- Loading branch information
Showing
13 changed files
with
72,852 additions
and
42,381 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
- name: Run | ||
run: make | ||
- name: Commit and Push | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "[email protected]" | ||
git add -A | ||
if git diff-index --quiet HEAD --; then | ||
echo "No changes to commit" | ||
else | ||
git commit -m "Update data" | ||
git push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.DS_Store | ||
env | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
VENV = env | ||
PYTHON = $(VENV)/bin/python3 | ||
PIP = $(VENV)/bin/pip | ||
|
||
.PHONY: data clean | ||
|
||
all: data | ||
|
||
data: $(VENV)/bin/activate | ||
$(PYTHON) scripts/process.py | ||
$(PYTHON) scripts/airport-codes-flow.py | ||
|
||
$(VENV)/bin/activate: scripts/requirements.txt | ||
python3 -m venv $(VENV) | ||
$(PIP) install -r scripts/requirements.txt | ||
|
||
validate: | ||
$(PYTHON) -m frictionless validate data/constituents.csv | ||
|
||
clean: | ||
rm -rf __pycache__ | ||
rm -rf $(VENV) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.