-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 1.92 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
name: test
on:
push: # only publishes pushes to the main branch to TestPyPI
branches: # any integration branch but not tag
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
name: ${{ matrix.name || matrix.os }}
runs-on: ${{ matrix.os || 'ubuntu-24.04' }}
defaults:
run:
shell: ${{ matrix.shell || 'bash'}}
strategy:
fail-fast: false
matrix:
os: # https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners
- ubuntu-24.04
- macos-15
- macos-14
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by setuptools-scm
submodules: true
- name: Show info about default shell used by github runners
run: |
set -euxo pipefail
pwd
ls
echo $SHELL
id
type curl
type sh
- name: Install mise
uses: jdx/mise-action@v2
- name: Install mise extra python packages
run: |
mise exec --command "python3 -m pip install -r .default-python-packages"
mise reshim
- name: Valdate mise availability
run: |
set -euxo pipefail
type -a mise
mise --version
mise doctor
mise ls
mise exec --command "python3 --version"
mise exec --command "python3 -m pip --version"
mise exec --command "python3 -m tox --version"
mise exec --command "gh --version"
mise exec --command "task --version"
type -a python3
type -a pip3
type -a gh
type -a task
type -a node
type -a tox
tox --version