-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.23 KB
/
check.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
name: Checks
on:
push:
pull_request:
jobs:
checks:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install flake8 dependencies
run: |
# prerequisites
python -m pip install --upgrade pip wheel
python -m pip install flake8
- name: Lint with flake8
run: |
flake8 .
- name: Cache vagrant images
uses: actions/cache@v2
env:
cache-name: vagrant-image
with:
path: ~/.vagrant.d
key: macos-build-${{ env.cache-name }}-${{ hashFiles('Vagrantfile') }}
restore-keys: |
macos-build-${{ env.cache-name }}-
- name: save environment variables for codecov in VM
run: |
env | grep GITHUB > environment.txt
cat environment.txt
- name: Get the latest box and remove old boxes from the GH Actions cache
run: |
vagrant box update
vagrant box prune
- name: Setup vagrant VM
run: |
vagrant plugin install vagrant-vbguest
vagrant up
- name: Run tests in vagrant VM
run: |
vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh