install #394
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: install | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '0 0 1 * *' | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
install: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3.1.0 | |
# NOTE: Using setup-python in ubuntu, the fontforge script is giving me an error. Therefore, use the default python. | |
- uses: actions/setup-python@v2.2.2 | |
id: python | |
with: | |
python-version: '3.8' | |
if: matrix.os == 'macOS-latest' | |
- name: set python path | |
run: echo -e "[defaults]\ninterpreter_python=${{ steps.python.outputs.python-path }}" > ansible/ansible.cfg | |
if: matrix.os == 'macOS-latest' | |
- name: install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade setuptools | |
pip install -r ansible/requirements.txt | |
- name: install dotfiles | |
run: make dotfiles | |
- name: install dependencies | |
run: make dependencies | |
- name: run test | |
run: make test | |
- name: test asdf | |
run: zsh -lc "asdf plugin-add ruby && asdf install ruby 3.1.2" < /dev/null |