using gcloud auth, updating build versions

This commit is contained in:
andy 2022-07-26 22:17:39 +01:00
parent e767241c21
commit 7d1149a1d5
4 changed files with 1861 additions and 1938 deletions

View File

@ -6,13 +6,13 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: [3.8, 3.9] python-version: [3.10]
poetry-version: [1.1.7] poetry-version: [1.1.14]
node: [16] node: [18]
os: [ubuntu-20.04, windows-latest] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 # get source - uses: actions/checkout@v3 # get source
# PYTHON # PYTHON
- name: Install Python ${{ matrix.python-version }} - name: Install Python ${{ matrix.python-version }}
@ -32,11 +32,11 @@ jobs:
# PYTHON for authentication when testing # PYTHON for authentication when testing
- name: Set up Cloud SDK - name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0 uses: google-github-actions/auth@v0.7.3
with: with:
project_id: ${{ secrets.GCP_PROJECT_ID }} credentials_json: '${{ secrets.GCP_SA_KEY }}'
service_account_key: ${{ secrets.GCP_SA_KEY }} export_environment_variables: true
export_default_credentials: true # <=== create_credentials_file: true
# PYTHON run unit tests # PYTHON run unit tests
- name: Run Python Tests - name: Run Python Tests
@ -61,33 +61,33 @@ jobs:
# run: npm test # run: npm test
documentation: documentation:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
needs: build # for ignoring bad builds needs: build # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- uses: actions/checkout@v2 # get source - uses: actions/checkout@v3 # get source
# PYTHON # PYTHON
- name: Install Python 3.8 - name: Install Python 3.10
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: 3.10
# PYTHON for dependency export only, not installing # PYTHON for dependency export only, not installing
- name: Install Poetry 1.1.7 - name: Install Poetry 1.1.14
uses: abatilo/actions-poetry@v2.1.0 uses: abatilo/actions-poetry@v2.1.0
with: with:
poetry-version: 1.1.7 poetry-version: 1.1.14
# PYTHON install dependencies # PYTHON install dependencies
- name: Install Python Dependencies - name: Install Python Dependencies
run: poetry install run: poetry install
# JS setup for jsdoc # JS setup for jsdoc
- name: Install Node 16 - name: Install Node 18
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 18
# JS setup for jsdoc # JS setup for jsdoc
- name: Install jsdoc - name: Install jsdoc
@ -99,11 +99,11 @@ jobs:
# DEPLOY for setting up cloud API # DEPLOY for setting up cloud API
- name: Set up Cloud SDK - name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0 uses: google-github-actions/auth@v0.7.3
with: with:
project_id: ${{ secrets.GCP_PROJECT_ID }} credentials_json: '${{ secrets.GCP_SA_KEY }}'
service_account_key: ${{ secrets.GCP_SA_KEY }} export_environment_variables: true
export_default_credentials: true # <=== need to run through modules later generating docs create_credentials_file: true
- name: Generate Documentation - name: Generate Documentation
run: poetry run sphinx-build docs public -b html run: poetry run sphinx-build docs public -b html
@ -115,33 +115,33 @@ jobs:
publish_dir: ./public publish_dir: ./public
deploy: deploy:
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
needs: build # for ignoring bad builds needs: build # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- uses: actions/checkout@v2 # get source - uses: actions/checkout@v3 # get source
# PYTHON # PYTHON
- name: Install Python 3.8 - name: Install Python 3.10
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: 3.10
# PYTHON for dependency export only, not installing # PYTHON for dependency export only, not installing
- name: Install Poetry 1.1.7 - name: Install Poetry 1.1.14
uses: abatilo/actions-poetry@v2.1.0 uses: abatilo/actions-poetry@v2.1.0
with: with:
poetry-version: 1.1.7 poetry-version: 1.1.14
# PYTHON Export Poetry dependencies as requirements.txt # PYTHON Export Poetry dependencies as requirements.txt
- name: Export Poetry Dependencies - name: Export Poetry Dependencies
run: python admin.py pydepend run: python admin.py pydepend
# JS setup # JS setup
- name: Install Node 16 - name: Install Node 18
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 18
# JS install from lock.json # JS install from lock.json
- name: Install Node Packages - name: Install Node Packages
@ -160,11 +160,11 @@ jobs:
# DEPLOY for setting up cloud API # DEPLOY for setting up cloud API
- name: Set up Cloud SDK - name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0 uses: google-github-actions/auth@v0.7.3
with: with:
project_id: ${{ secrets.GCP_PROJECT_ID }} credentials_json: '${{ secrets.GCP_SA_KEY }}'
service_account_key: ${{ secrets.GCP_SA_KEY }} export_environment_variables: true
export_default_credentials: true create_credentials_file: true
# DEPLOY set project # DEPLOY set project
- name: Set GCP Project - name: Set GCP Project

View File

@ -1,4 +1,4 @@
runtime: python38 runtime: python310
service: spotify service: spotify
#instance_class: F1 #instance_class: F1

3725
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@ start = 'admin:run'
docs = 'admin:docs' docs = 'admin:docs'
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.8" python = "~3.10"
fireo = "^1.3.3" fireo = "^1.3.3"
Flask = "^1.1.2" Flask = "^1.1.2"
google-cloud-firestore = "^1.7.0" google-cloud-firestore = "^1.7.0"