Unit testing CI #6
Workflow file for this run
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: CI for Unit Tests | |
on: | |
push: {} | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v2 | |
# We could choose to set up dependencies manually in the GHA runner | |
# instead of installing them during the GHA. | |
# | |
# However, I think it's better to do them in the GHA itself so that | |
# we're testing our dependency installation step in addition to our | |
# actual code. | |
# | |
# This also removes the need to manually reinstall dependencies on | |
# the GHA runners every time we add a new dependency. | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
./dependency/install_dependencies.sh | |
. "$HOME/.cargo/env" | |
- name: Run unit tests | |
run: python scripts/run_unittests.py |