-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 996 Bytes
/
unit-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: unit-tests
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v3
# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y freetds-dev libkrb5-dev
- name: Install dependencies
run: |
cd core
pip install wheel
CASS_DRIVER_NO_CYTHON=1 pip install cassandra-driver
pip install .
pip install .[test]
- name: Run tests
run: |
cd core
PYTHONPATH=src python -m pytest -s --log-cli-level=DEBUG