generated from konveyor-ecosystem/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 8
91 lines (72 loc) · 2.35 KB
/
mac.yaml
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
81
82
83
84
85
86
87
88
89
90
91
name: Kantra CLI on MacOS
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
shell: bash
- name: Install Podman
run: |
brew install podman
shell: bash
- name: Verify Podman installation
run: |
podman --version
shell: bash
- name: Configure Podman
run: |
sudo ulimit -n unlimited
podman machine init test_vm -v $HOME:$HOME -v /private/tmp:/private/tmp -v /var/folders/:/var/folders/
podman machine set test_vm --cpus 4 --memory 4096 --disk-size 100
podman system connection default test_vm
podman machine start test_vm
shell: bash
- name: Pull Kantra Podman Image
run: podman pull quay.io/konveyor/kantra:latest
shell: bash
- name: Download Kantra
run: |
podman run --name kantra-download quay.io/konveyor/kantra:latest 1> /dev/null 2> /dev/null
podman cp kantra-download:/usr/local/bin/darwin-kantra kantra
podman rm kantra-download
ls -la
shell: bash
- name: Configure Environment Variables
run: |
cp .env.example .env
> .env
echo "KANTRA_CLI_PATH=$GITHUB_WORKSPACE/kantra" >> .env
echo "REPORT_OUTPUT_PATH=$GITHUB_WORKSPACE/report" >> .env
echo "PROJECT_PATH=$GITHUB_WORKSPACE" >> .env
cat .env
working-directory: ${{ github.workspace }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11.6'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run transform tests
run: |
pytest -s -k "transform and not bug"
- name: Run common option tests
run: |
pytest -s -k "common and not bug"
- name: Run advanced option tests
run: |
pytest -k "advanced and not bug"
- name: Run simple standard analysis test
run: |
pytest -s -k "jee_example_app and not bug"
- name: Save analysis output
uses: actions/upload-artifact@v2
with:
name: kantra-outputs
path: ${{ github.workspace }}/report