Skip to content

update CI/CD to build dist packages #5

update CI/CD to build dist packages

update CI/CD to build dist packages #5

Workflow file for this run

name: xdlake
permissions:
id-token: write # Require write permission to Fetch an OIDC token.
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Azure CLI Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- id: 'auth'
name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_CREDS }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
- name: lint
run: |
make lint
- name: Test with tox
env:
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: tox
build:
name: Build dist packages

Check failure on line 51 in .github/workflows/cicd.yml

View workflow run for this annotation

GitHub Actions / xdlake

Invalid workflow file

The workflow is not valid. .github/workflows/cicd.yml (Line: 51, Col: 5): Required property is missing: runs-on
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build
run: |
make build
- name: Store distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/