Skip to content

Commit

Permalink
Move poetry-based CI/CD to conda
Browse files Browse the repository at this point in the history
  • Loading branch information
Old-Shatterhand committed Feb 15, 2025
1 parent 8ae247d commit a121460
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,28 @@ on:
jobs:
# This workflow contains a single job called "test"
test:
runs-on: ubuntu-latest
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3

- name: Setup Mamba
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.9
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.12
- name: Install dependencies
python-version: '3.9'
miniforge-version: latest
activate-environment: MPP
use-mamba: true

- name: Install environment
shell: bash -l {0}
run: |
rm poetry.lock
poetry install
poetry run python -m pip install pytest-cov
pip install numpy rdkit">=2021.9.2" antlr4-tools">=0.2.1" networkx">=2.6.3" pydot">=1.4.2" joblib">=1.2.0" pytest">=6.2.5" pytest-cov
- name: Run tests
run: |
cd tests
poetry run python -m pytest --cov=../glyles/ --cov-report=xml -m "not todo"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit a121460

Please sign in to comment.