-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (50 loc) · 1.39 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Unit tests
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build:
name: Units - ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run PostgreSQL
run: |
type -P podman docker
builtin type -P podman docker
ls -l /bin/sh
ls -l /bin/bash
echo $SHELL
make run-db
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements/requirements-test-${{ matrix.python-version }}.txt -r requirements/requirements-${{ matrix.python-version }}.txt
#
# - name: Test with pytest
# run: |
# pytest --cov-report=xml
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# env_vars: OS,PYTHON
# file: ./coverage.xml
# fail_ci_if_error: true
# flags: unittests
# name: codecov-umbrella
# token: ${{ secrets.CODECOV_TOKEN }}
# verbose: true