Skip to content

Update test.yaml

Update test.yaml #129

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Testing
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
- auto_test
- dev
- dev_1.0_grammar
pull_request:
branches:
- main
- auto_test
- dev
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "test"
test:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Setup Mamba
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.9'
miniforge-version: latest
activate-environment: MPP
use-mamba: true
- name: Install environment
shell: bash -l {0}
run: |
pip install numpy rdkit">=2021.9.2" antlr4-tools">=0.2.1" antlr4-python3-runtime"==4.13.2" networkx">=2.6.3" pydot">=1.4.2" joblib">=1.2.0" pytest pytest-cov
- name: Run tests
shell: bash -l {0}
run: |
cd tests
pytest --cov=../glyles/ --cov-report=xml -m "not todo" --subset-size=10000
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: coverage.xml