Debian Codegraph @

.github/actions/install-base/action.yml

raw symbols SCIP
1 name: "Install"
2 description: "Install python, then cache"
3 inputs:
4 python-version:
5 description: "Python version"
6 required: true
7 python-architecture:
8 description: "Python architecture, if not default for platform"
9 task:
10 description: "Task name"
11 required: true
12 runs:
13 using: "composite"
14 steps:
15 - name: Set up Python ${{ inputs.python-version }} ${{ inputs.python-architecture }}
16 uses: actions/setup-python@v4
17 with:
18 python-version: ${{ inputs.python-version }}
19 architecture: ${{ inputs.python-architecture }}
20 - name: Install dotnet6 for Pyjion
21 if: ${{ endsWith(inputs.task, '-pyjion') }}
22 shell: bash
23 run: |
24 wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
25 sudo dpkg -i packages-microsoft-prod.deb
26 rm packages-microsoft-prod.deb
27 sudo apt-get update
28 sudo apt-get install -y apt-transport-https && \
29 sudo apt-get update && \
30 sudo apt-get install -y dotnet-sdk-6.0
31 - name: Restore cache
32 uses: actions/cache@v3
33 with:
34 path: |
35 .tox/
36 vendor/bundle
37 ~/.cache
38 ~/.local
39 ~/appdata/local/pip/cache
40 ~/Library/Caches/pip
41 ~/wheelhouse
42 key: deps-${{ runner.os }}-${{ hashFiles('requirements/*.txt') }}-${{ inputs.python-version }}-${{ inputs.python-architecture }}-${{ inputs.task }}
43 restore-keys: |
44 deps-${{ runner.os }}-${{ hashFiles('requirements/*.txt') }}-${{ inputs.python-version }}-${{ inputs.python-architecture }}
45 deps-${{ runner.os }}-${{ hashFiles('requirements/*.txt') }}
46 deps-${{ runner.os }}