Skip to content

Commit

Permalink
Merge pull request #47 from gradedSystem/master
Browse files Browse the repository at this point in the history
Re-Updating the codebase of airport-codes
  • Loading branch information
anuveyatsu authored Oct 1, 2024
2 parents 68f702a + 7eb6766 commit 63f6278
Show file tree
Hide file tree
Showing 13 changed files with 72,852 additions and 42,381 deletions.
103 changes: 0 additions & 103 deletions .datahub/datapackage.json

This file was deleted.

117 changes: 0 additions & 117 deletions .datahub/flow.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/actions.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.DS_Store
env
__pycache__
22 changes: 22 additions & 0 deletions Makefile
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)
11 changes: 0 additions & 11 deletions airport data.csv

This file was deleted.

Loading

0 comments on commit 63f6278

Please sign in to comment.