Skip to content

Split parsing of Poetry versions into a separate module #522

Split parsing of Poetry versions into a separate module

Split parsing of Poetry versions into a separate module #522

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
py_ver: ["3.11", "3.12"]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.py_ver }}
steps:
- uses: actions/checkout@master
- uses: conda-incubator/setup-miniconda@v3.0.4
with:
auto-update-conda: true
channels: conda-forge,defaults
channel-priority: true
python-version: ${{ matrix.py_ver }}
environment-file: environment.yaml
activate-environment: gs
- name: Conda info
shell: bash -l {0}
run: |
conda info --all
conda list
- name: Running doctests
shell: bash -l {0}
run: |
pytest grayskull \
-vv \
-n 0 \
--color=yes \
--cov=./ \
--cov-append \
--cov-report html:coverage-serial-html \
--cov-report xml:coverage-serial.xml \
--cov-config=.coveragerc \
--junit-xml=Linux-py${{ matrix.py_ver }}-serial.xml \
--junit-prefix=Linux-py${{ matrix.py_ver }}-serial
- name: Running serial tests
shell: bash -l {0}
run: |
pytest tests \
-vv \
-n 0 \
-m "serial" \
--color=yes \
--cov=./ \
--cov-append \
--cov-report html:coverage-serial-html \
--cov-report xml:coverage-serial.xml \
--cov-config=.coveragerc \
--junit-xml=Linux-py${{ matrix.py_ver }}-serial.xml \
--junit-prefix=Linux-py${{ matrix.py_ver }}-serial
- name: Running parallel tests
shell: bash -l {0}
run: |
pytest tests \
-vv \
-n 0 \
-m "not serial" \
--color=yes \
--cov=./ \
--cov-append \
--cov-report html:coverage-parallel-html \
--cov-report xml:coverage-parallel.xml \
--cov-config=.coveragerc \
--junit-xml=Linux-py${{ matrix.py_ver }}-parallel.xml \
--junit-prefix=Linux-py${{ matrix.py_ver }}-parallel
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.5.0
with:
files: ./coverage-serial.xml,./coverage-parallel.xml
directory: .
flags: unittests