-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (63 loc) · 1.78 KB
/
installLinux.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
56
57
58
59
60
61
62
63
64
65
66
name: Install and verify
on:
push:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
steps:
- name: Checkout content
uses: actions/checkout@v3
- name: Install ubuntu dependencies
run: |
sudo apt-get update -qq
sudo apt-get install libegl1
- name: Set up ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-linux.txt
pip install coverage pytest pytest-qt pytest-qt-app pytest-mock coverage typing-extensions
- name: Check installation
run: |
coverage run -m pasta_eln.installationTools
- name: Installation
run: |
coverage run -a -m pasta_eln.installationTools install pasta_data
ls ~
echo '----------'
ls ~/pasta_data
more ~/.pastaELN_v3.json
- name: Check installation
run: |
coverage run -a -m pasta_eln.installationTools
- name: Create example data
run: |
coverage run -a -m pasta_eln.installationTools example
tree ~/pasta_data
- name: Run tests
run: |
coverage run -a -m pytest -s --tb=short tests
coverage html -i
shell: bash
env:
QT_QPA_PLATFORM: "offscreen"
- name: Upload log
uses: actions/upload-artifact@v4
with:
name: artifact_${{ matrix.python-version }}
path: |
~/pastaELN.log
~/.pastaELN*.json
~/pasta_data/pastaELN.db
htmlcov/
/tmp/pytest-of-runner/pytest-0/
if: ${{ always() }}