[pre-commit.ci] pre-commit autoupdate (#169) #365
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
CONDA_PY: ["36", "37", "38", "39"] | |
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@v2 | |
- 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: | |
CONDA_PY: ${{ matrix.CONDA_PY }} | |
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 install -n qmxgraph coveralls pytest-cov | |
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 |