update workflow config

This commit is contained in:
sebthom
2024-03-07 20:33:34 +01:00
parent a441c5de73
commit a5c1219faf
5 changed files with 34 additions and 18 deletions

View File

@@ -27,6 +27,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Show environment variables
run: env | sort
- name: Generate GitHub Access Token
uses: tibdex/github-app-token@v2 #https://github.com/tibdex/github-app-token
id: generate_token
@@ -43,18 +47,23 @@ jobs:
token: ${{ steps.generate_token.outputs.token }}
- uses: actions/setup-python@v5
- name: "Install Python and PDM" # https://github.com/pdm-project/setup-pdm
uses: pdm-project/setup-pdm@v4
with:
python-version: "${{ env.PYTHON_VERSION }}"
cache: true
- name: Install Python dependencies
- name: "Install: Python dependencies"
run: |
set -eux
python --version
python -m pip install --upgrade pip
pip install --upgrade pdm
if [[ ! -e .venv ]]; then
pdm venv create || true
fi
pdm install -v