* fix: set python version first Signed-off-by: Frost Ming <me@frostming.com> * fix: drop 3.8 and add 3.13 Signed-off-by: Frost Ming <me@frostming.com> * fix: update pdm.lock Signed-off-by: Frost Ming <me@frostming.com>
40 lines
1023 B
YAML
40 lines
1023 B
YAML
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
name: Test Action
|
|
|
|
jobs:
|
|
Testing:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
name: Test the action
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup PDM
|
|
uses: ./
|
|
id: setup-pdm
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: true
|
|
allow-python-prereleases: true
|
|
|
|
- name: Check output
|
|
run: |
|
|
echo ${{ steps.setup-pdm.outputs.pdm-bin }}
|
|
echo ${{ steps.setup-pdm.outputs.pdm-version }}
|
|
echo ${{ steps.setup-pdm.outputs.python-path }}
|
|
echo ${{ steps.setup-pdm.outputs.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: pdm install -v && pdm info
|
|
|
|
- name: Verify python version
|
|
run: pdm run python test.py
|
|
env:
|
|
PYTHON_VERSION: ${{ matrix.python-version }}
|