Set up GitHub Actions to run code checks #2
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: Run affils code checks | |
on: [push, pull_request] | |
env: | |
HCI_ROOT_DIR: "." | |
permissions: | |
contents: read | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install front end and back end dependencies | |
run: | | |
npm install | |
pip install -r requirements.txt | |
- name: Run all code checks | |
run: invoke check |