-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.09 KB
/
run-tests.yml
File metadata and controls
38 lines (36 loc) · 1.09 KB
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
name: Run tests
on:
workflow_dispatch:
release:
types: [published]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run with setup-python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup required modules
run: python -m pip install -r requirements.txt
- name: Install mkcert
run: |
sudo apt-get install libnss3-tools
wget -q https://dl.filippo.io/mkcert/latest?for=linux/amd64 -O mkcert
chmod +x mkcert
sudo cp mkcert /usr/local/bin/
mkcert -install
- name: Generate SSL certificates
run: |
mkcert 127.0.0.1
- name: Start Python test server with HTTPS
run: |
python krenalis/analytics/test/test_server/server.py &
shell: bash
- name: Run tests
run: python -m unittest discover -s krenalis