Azure / actions-workflow-samples

Help developers to easily get started with GitHub Action workflows to deploy to Azure
https://github.com/Azure/actions
MIT License
448 stars 624 forks source link

cant run command: sudo apt-get python3.6-dev #70

Open theHoneyBadge opened 3 years ago

theHoneyBadge commented 3 years ago

Hi there,

I cannot deploy due to needing some c compiler files that are available in python3.6-dev You cannot pip install them so you must apt-get. The Actions deployment complains about stability of the cli etc. What is the correct way to get this installed so I can take care of the dependencies that keep breaking in my requirements.txt

My yaml is as follows: .github/workflows/master-appName(production).yml

    name: Azure App Service - appName(Production), Build and deploy Python app

    on:
      push:
        branches:
          - master

    jobs:
      build-and-deploy:
        runs-on: ubuntu-latest

        steps:
        # checkout the repo
        - name: 'Checkout Github Action'
          uses: actions/checkout@master

        - name: Set up Python version
          uses: actions/setup-python@v1
          with:
            python-version: '3.6'

        - name: apt get python 3.6-dev and shap
          run: |
            sudo apt-get install python3.6-dev
            pip install shap

        - name: Build using AppService-Build
          uses: azure/appservice-build@v2
          with:
            platform: python
            platform-version: '3.6'