File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,24 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v2
14
14
15
- # We could choose to set up dependencies manually in the GHA runner.
15
+ # We could choose to set up dependencies manually in the GHA runner
16
+ # instead of installing them during the GHA.
16
17
#
17
18
# However, I think it's better to do them in the GHA itself so that
18
19
# we're testing our dependency installation step in addition to our
19
20
# actual code.
21
+ #
22
+ # This also removes the need to manually reinstall dependencies on
23
+ # the GHA runners every time we add a new dependency.
20
24
- name : Set up Python
21
25
uses : actions/setup-python@v4
22
26
with :
23
27
python-version : ' 3.10'
24
28
25
29
- name : Install dependencies
26
- run : ./dependency/install_dependencies.sh
30
+ run : |
31
+ ./dependency/install_dependencies.sh
32
+ . "$HOME/.cargo/env"
27
33
28
34
- name : Run unit tests
29
35
run : python scripts/run_unittests.py
Original file line number Diff line number Diff line change 2
2
# You may want to create a conda environment before doing this
3
3
pip install -r dependency/requirements.txt
4
4
cat dependency/apt_requirements.txt | xargs sudo apt-get install -y
5
- curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
5
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
You can’t perform that action at this time.
0 commit comments