6464 cargo check --no-default-features --features ${{ matrix.features }}
6565 fi
6666
67- integration-test :
68- name : Tests
67+ unit-test :
68+ name : Unit Tests
69+ runs-on : ubuntu-latest
70+
71+ steps :
72+ - uses : actions/checkout@v6
73+
74+ - uses : dtolnay/rust-toolchain@stable
75+
76+ - name : Cache Rust dependencies
77+ uses : Swatinem/rust-cache@v2
78+
79+ - name : Free Disk Space
80+ run : |
81+ sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
82+ sudo rm -rf \
83+ /usr/share/dotnet /usr/local/lib/android /opt/ghc \
84+ /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
85+ /usr/lib/jvm || true
86+
87+ - name : Install ODBC & Sqlite
88+ run : |
89+ sudo apt-get install -y unixodbc-dev
90+ sudo apt-get install -y libsqlite3-dev
91+
92+ - name : Run tests
93+ run : make test
94+
95+ rust-integration-test :
96+ name : Integration Tests
6997 runs-on : ubuntu-latest
7098
7199 env :
@@ -87,28 +115,6 @@ jobs:
87115 /usr/share/dotnet /usr/local/lib/android /opt/ghc \
88116 /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
89117 /usr/lib/jvm || true
90- echo "some directories deleted"
91- sudo apt-get update >/dev/null 2>&1
92- sudo apt install aptitude -y >/dev/null 2>&1 || true
93- sudo aptitude purge aria2 ansible azure-cli shellcheck rpm xorriso zsync \
94- esl-erlang firefox gfortran-8 gfortran-9 google-chrome-stable \
95- google-cloud-sdk imagemagick \
96- libmagickcore-dev libmagickwand-dev libmagic-dev ant ant-optional kubectl \
97- mercurial apt-transport-https mono-complete libmysqlclient \
98- yarn chrpath libssl-dev libxft-dev \
99- libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev \
100- snmp pollinate libpq-dev postgresql-client powershell ruby-full \
101- sphinxsearch subversion mongodb-org azure-cli microsoft-edge-stable \
102- -y -f >/dev/null 2>&1 || true
103- sudo aptitude purge google-cloud-sdk -f -y >/dev/null 2>&1 || true
104- sudo aptitude purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
105- sudo apt purge microsoft-edge-stable -f -y >/dev/null 2>&1 || true
106- sudo aptitude purge '~n ^php' -f -y >/dev/null 2>&1 || true
107- sudo aptitude purge '~n ^dotnet' -f -y >/dev/null 2>&1 || true
108- sudo apt-get autoremove -y >/dev/null 2>&1 || true
109- sudo apt-get autoclean -y >/dev/null 2>&1 || true
110- echo "some packages purged"
111- df -h
112118
113119 - name : Pull the Postgres/MySQL images
114120 run : |
@@ -126,9 +132,6 @@ jobs:
126132 dbc install sqlite
127133 dbc install duckdb
128134
129- - name : Run tests
130- run : make test
131-
132135 - name : Run integration tests
133136 run : make test-integration
134137
0 commit comments