Skip to content

WIP

WIP #50

Workflow file for this run

name: "Test"
on:
push:
branches:
- "main"
jobs:
test:
name: "Test on ${{ matrix.config.os-name }}"
runs-on: "${{ matrix.config.runner }}"
strategy:
matrix:
config:
- os-name: "Linux"
runner: "ubuntu-latest"
test-label: "ci-test-linux"
- os-name: "macOS"
runner: "macos-latest"
test-label: "ci-test-macos"
- os-name: "Windows"
runner: "windows-latest"
test-label: "ci-test-windows"
fail-fast: false
steps:
- name: "Show environment (pre)"
shell: "bash"
run: env | sort
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup Python"
id: "setup-python"
uses: "actions/setup-python@v4"
with:
python-version: |
3.9
3.10
3.11
pypy-3.9
allow-prereleases: true
- name: "Show environment (post)"
shell: "bash"
run: env | sort
- name: "Linux / macOS"
if: "runner.os != 'windows'"
shell: "bash"
run: |
find \
"$RUNNER_TOOL_CACHE/Python" \
"$RUNNER_TOOL_CACHE/PyPy" \
-mindepth 2 \
-maxdepth 2 \
-name 'x86' \
-o \
-name 'x64' \
| while read path; do
if [[ -x "${path}/bin/python" ]]; then
echo "$path"
fi
done | sort
- name: "Windows"
if: "runner.os == 'windows'"
shell: "powershell"
run: |
(
Get-ChildItem
-Path
"$env:RUNNER_TOOL_CACHE\Python",
"$env:RUNNER_TOOL_CACHE\PyPy"
-Include
x86,
x64
-Directory
-Recurse
-Depth 1
)