-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (49 loc) · 1.29 KB
/
main.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: build
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ["3.10"]
steps:
- uses: actions/checkout@v2
# # We need to install Qt on the system otherwise tests in
# # tests/test_qt_js_integration.py crash.
# - name: Install Qt
# uses: jurplel/install-qt-action@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ''
channels: conda-forge,esss
channel-priority: true
- name: Install
env:
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
run: |
conda config --system --set always_yes yes --set changeps1 no
conda install -c conda-forge conda-devenv
conda info -a
export TEST_QMXGRAPH=1
conda devenv -n qmxgraph
conda init bash
- name: Tests
shell: bash -l {0}
run: |
conda activate qmxgraph
scripts/run_tests.sh
- name: Coveralls
shell: bash -l {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
conda activate qmxgraph
coveralls