forked from vlcn-io/cr-sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (62 loc) · 1.73 KB
/
py-tests.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
on:
push:
pull_request:
name: "py-tests"
jobs:
build:
name: Testing on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: windows-2022
- os: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Load .env file
uses: xom9ikk/dotenv@v2
with:
path: ./
load-mode: strict
- name: Rust Nightly
run: |
rustup default nightly
rustup update
- name: Windows rust toolchain
if: runner.os == 'Windows'
run: |
rustup toolchain install nightly-x86_64-pc-windows-gnu
rustup component add rust-src --toolchain nightly-x86_64-pc-windows-gnu
rustup default nightly-x86_64-pc-windows-gnu
- name: Make loadable
run: |
cd core
make loadable
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: anaconda-client-env
python-version: "3.10"
- name: Install SQLite
run: conda install sqlite
- name: Check SQLite Version
run: echo "import sqlite3; print(sqlite3.sqlite_version)" | python
# - name: Install Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"
- name: Install pytest
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Pip Deps
run: cd py/correctness && pip install -e .
- name: Test
run: cd py/correctness && pytest