ci: increase vmemory to 2GB #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 plugin install vagrant-vbguest | |
vagrant up | |
- name: Run tests in vagrant VM | |
run: | | |
vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh |