-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.26 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
48
49
name: Checks
on:
push:
pull_request:
# only allow one job to run
concurrency: general_workflow
jobs:
checks:
runs-on: macos-12
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 --exclude _version.py .
- name: Cache vagrant images
uses: actions/cache@v3
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 up
- name: Run tests in vagrant VM
run: |
vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh