Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI jinja cleanup #19

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,53 +34,29 @@ jobs:
uname -a
df -h
ulimit -a
{% if cookiecutter.dependency_source == 'Dependencies from pip only (no conda)' %}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Testing Dependencies
shell: bash
run: |
python -m pip install -U pytest pytest-cov codecov
{% else %}
# More info on options: https://github.com/marketplace/actions/setup-micromamba
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: devtools/conda-envs/test_env.yaml
environment-name: test
{%- if cookiecutter.dependency_source == 'Prefer conda-forge with pip fallback' %}
condarc: |
channels:
- conda-forge
{%- elif cookiecutter.dependency_source == 'Prefer default anaconda channel with pip fallback' %}
condarc: |
channels:
- defaults
{%- endif %}
create-args: >-
python=${{ matrix.python-version }}
{% endif %}

- name: Install package
{%- if cookiecutter.dependency_source == 'Dependencies from pip only (no conda)' %}
shell: bash
run: |
python -m pip install .
{% else %}
# conda setup requires this special shell
shell: bash -l {0}
run: |
python -m pip install . --no-deps
micromamba list
{% endif %}

- name: Run tests
{%- if cookiecutter.dependency_source == 'Dependencies from pip only (no conda)' %}
shell: bash
{% else %}
# conda setup requires this special shell
shell: bash -l {0}
{%- endif %}
run: |
pytest -v --cov=polymerist --cov-report=xml --color=yes polymerist/tests/

Expand Down
Loading