Skip to content

Copy from ord-interface #3

Copy from ord-interface

Copy from ord-interface #3

Workflow file for this run

# Copyright 2020 Open Reaction Database Project Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Tests
on:
pull_request:
branches:
- '*'
push:
branches:
- 'main'
jobs:
test_ord_app:
strategy:
matrix:
os: ["ubuntu-latest", "macos-14"]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
env:
PGDATA: $GITHUB_WORKSPACE/rdkit-postgres
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install ord_app
run: |
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install .[tests]
- name: Run tests
shell: bash -l {0}
run: |
coverage erase
pytest -vv --cov=ord_app --durations=20
coverage xml
- uses: codecov/codecov-action@v1