-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (36 loc) · 956 Bytes
/
build-init.yml
File metadata and controls
42 lines (36 loc) · 956 Bytes
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
---
name: CI-build
on:
push:
branches: [main]
pull_request:
paths-ignore: ["docs/**"]
jobs:
build-init:
# this job initialises the vagrant box
# then just runs some initial ansible tasks
# for the full build, see build.yml
runs-on: macos-latest
env:
VAGRANT_NO_GUI: true
VAGRANT_ON_GH: true
steps:
- uses: actions/checkout@v4
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: install pip requirements
run: |
pip install --upgrade pip
pip install wheel
pip install -r requirements.txt
- name: install ansible requirements
run: ansible-galaxy install -r requirements.yml
- name: Build Vagrant Box
run: ANSIBLE_ARGS="--tags init,ci_test" vagrant up
- name: Archive ansible log
uses: actions/upload-artifact@v4
with:
name: ansible-log
path: ansible.log