diff --git a/.gcloudignore b/.gcloudignore index 183fa13..72e1e0b 100644 --- a/.gcloudignore +++ b/.gcloudignore @@ -1,19 +1,22 @@ -# This file specifies files that are *not* uploaded to Google Cloud Platform -# using gcloud. It follows the same syntax as .gitignore, with the addition of -# "#!include" directives (which insert the entries of the given .gitignore-style -# file at that point). -# -# For more information, run: -# $ gcloud topic gcloudignore -# -.gcloudignore -# If you would like to upload your .git directory, .gitignore file or files -# from your .gitignore file, remove the corresponding line -# below: -.git -.gitignore - -# Python pycache: -__pycache__/ -# Ignored by the build system -/setup.cfg \ No newline at end of file +# This file specifies files that are *not* uploaded to Google Cloud Platform +# using gcloud. It follows the same syntax as .gitignore, with the addition of +# "#!include" directives (which insert the entries of the given .gitignore-style +# file at that point). +# +# For more information, run: +# $ gcloud topic gcloudignore +# +.gcloudignore +# If you would like to upload your .git directory, .gitignore file or files +# from your .gitignore file, remove the corresponding line +# below: +.git +.gitignore + +# Python pycache: +__pycache__/ +# Ignored by the build system +/setup.cfg + +# This should be ignored since it's in .gitignore, but it's not +venv diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 00fcb35..b5fac93 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,9 +14,9 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: "3.10" - - name: Set up dependencies + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e12fa44..3ca6ea0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.8 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: "3.10" - name: Install dependencies run: | diff --git a/app.yaml b/app.yaml index 5657dd2..6e9b9e4 100644 --- a/app.yaml +++ b/app.yaml @@ -1 +1 @@ -runtime: python311 \ No newline at end of file +runtime: python310 diff --git a/update.py b/update.py index b2afbc9..9c33fc1 100644 --- a/update.py +++ b/update.py @@ -5,7 +5,7 @@ from cron import photos, schedules, update_lunch if __name__ == "__main__": - if not "GOOGLE_APPLICATION_CREDENTIALS" in os.environ: + if "GOOGLE_APPLICATION_CREDENTIALS" not in os.environ: os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "service_account.json" parser = argparse.ArgumentParser() parser.add_argument("data", help="Which data update.")