A database in TSV text files: data you can read, fast inserts, and an optional Rust speed-up.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-tsv.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-tsv.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-tsv.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add launch announcement for dbbasic-tsv v1.0.1 1c9b0b8 1 year, 1 month ago History
tests.yml · 1.8 KB · 70 lines
1name: Tests
2
3on:
4 push:
5 branches: [ main, develop ]
6 pull_request:
7 branches: [ main ]
8
9jobs:
10 test:
11 runs-on: ${{ matrix.os }}
12 strategy:
13 matrix:
14 os: [ubuntu-latest, macos-latest, windows-latest]
15 python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
16
17 steps:
18 - uses: actions/checkout@v3
19
20 - name: Set up Python ${{ matrix.python-version }}
21 uses: actions/setup-python@v4
22 with:
23 python-version: ${{ matrix.python-version }}
24
25 - name: Install dependencies
26 run: |
27 python -m pip install --upgrade pip
28 pip install pytest pytest-cov
29
30 - name: Run tests
31 run: |
32 python -m pytest tests/ -v --cov=dbbasic --cov-report=xml --cov-report=term
33
34 - name: Upload coverage to Codecov
35 uses: codecov/codecov-action@v3
36 if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
37 with:
38 file: ./coverage.xml
39 fail_ci_if_error: false
40
41 lint:
42 runs-on: ubuntu-latest
43 steps:
44 - uses: actions/checkout@v3
45
46 - name: Set up Python
47 uses: actions/setup-python@v4
48 with:
49 python-version: '3.10'
50
51 - name: Install linting tools
52 run: |
53 python -m pip install --upgrade pip
54 pip install flake8 black mypy
55
56 - name: Lint with flake8
57 run: |
58 # Stop the build if there are Python syntax errors or undefined names
59 flake8 dbbasic --count --select=E9,F63,F7,F82 --show-source --statistics
60 # Exit-zero treats all errors as warnings
61 flake8 dbbasic --count --exit-zero --max-complexity=10 --max-line-length=100 --statistics
62
63 - name: Check formatting with black
64 run: |
65 black --check dbbasic --line-length=100
66
67 - name: Type check with mypy
68 run: |
69 mypy dbbasic --ignore-missing-imports
70 continue-on-error: true