Fix Dockerfile after testing in production. #276
This file contains hidden or 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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.7.11" | |
- name: Install dependencies | |
run: uv pip install --system . | |
- name: Set environment variables | |
run: | | |
echo "BASE_PATH=$HOME/auv_data" >> $GITHUB_ENV | |
echo "CAL_DIR=$HOME/auv_data" >> $GITHUB_ENV | |
- name: Download and unzip required data files | |
run: | | |
mkdir -p "$HOME/auv_data" | |
wget -q --no-check-certificate -O "$HOME/auv_data/Dorado389.tar.gz" https://stoqs.mbari.org/auv_data/Dorado389.tar.gz | |
tar -xvf "$HOME/auv_data/Dorado389.tar.gz" -C "$HOME/auv_data" 2> /dev/null | |
wget -q --no-check-certificate -O "$HOME/auv_data/i2map.tar.gz" https://stoqs.mbari.org/auv_data/i2map.tar.gz | |
tar -xf "$HOME/auv_data/i2map.tar.gz" -C "$HOME/auv_data" 2> /dev/null | |
wget -q --no-check-certificate -O "$HOME/auv_data/SBE-43.tar.gz" https://stoqs.mbari.org/auv_data/SBE-43.tar.gz | |
tar -xf "$HOME/auv_data/SBE-43.tar.gz" -C "$HOME/auv_data" 2> /dev/null | |
- name: Install pytest | |
run: uv pip install --system pytest | |
- name: Run tests | |
run: pytest |