File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ARG SOLANA_VERSION
3
3
FROM solanalabs/solana:v${SOLANA_VERSION}
4
4
5
5
RUN apt-get update
6
- RUN apt-get install -y cmake curl g++ gcc-multilib git libzstd1 libzstd-dev sudo zlib1g zlib1g-dev
6
+ RUN apt-get install -y cmake curl g++ gcc-multilib git libzstd1 libzstd-dev python3-pytest sudo zlib1g zlib1g-dev
7
7
8
8
# Grant sudo access to pyth user
9
9
RUN echo "pyth ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
@@ -16,7 +16,11 @@ COPY --chown=pyth:pyth ${GITHUB_WORKSPACE} pyth-client/
16
16
17
17
RUN cd pyth-client && mkdir build && cd build && cmake .. && make && ctest
18
18
19
- RUN echo "\n export PATH=\$ PATH:$HOME/pyth-client/build" >> .bashrc
19
+ RUN echo "\n export PATH=\$ PATH:\$ HOME/pyth-client/build" >> .profile
20
+
21
+ RUN echo "\n export PYTHONPATH=\$ {PYTHONPATH:+\$ {PYTHONPATH}:}\$ HOME/pyth-client" >> .profile
22
+
23
+ RUN /bin/bash -l -c "pytest-3 --pyargs pyth"
20
24
21
25
# Install Rust
22
26
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
You can’t perform that action at this time.
0 commit comments