forked from itspngu/asdf-azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.02 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
name: CI
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "bin/*"
- ".github/workflows/*"
pull_request:
paths:
- "bin/*"
- ".github/workflows/*"
jobs:
plugin_test:
name: asdf plugin test
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
env:
PYTHON_TO_NOT_USE: "3.12"
steps:
- name: Install extras
if: ${{ matrix.os == 'macos-latest'}}
run: |
sudo rm -rf "/Library/Frameworks/Python.framework/Versions/${PYTHON_TO_NOT_USE}"
sudo rm -rf "/Applications/Python ${PYTHON_TO_NOT_USE}"
sudo find /usr/local/bin -lname '../../../Library/Frameworks/Python.framework/Versions/${PYTHON_TO_NOT_USE}/*' -delete
brew link --force python@3.11
hash -r
python3 --version
- uses: asdf-vm/actions/plugin-test@v3
with:
command: az version
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}