diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bb479ac..76c1d83 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -17,46 +17,39 @@ jobs: test: if: github.event.pull_request.draft == false name: Unit-Test (${{ matrix.os }}, Python ${{ matrix.python-version }}) - runs-on: ${{ matrix.os }}-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + os: ["ubuntu-latest", "macOs-latest"] python-version: ["3.9", "3.10"] - os: ["ubuntu", "macos"] - include: - - os: ubuntu - environment-file: environment.yml - miniforge-variant: Mambaforge - miniforge-version: 4.9.2-4 - - os: macos - environment-file: environment.yml - miniforge-variant: Mambaforge-pypy3 + defaults: run: shell: bash -l {0} steps: - - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 + - name: Checkout Branch / Pull Request + uses: actions/checkout@v3 + + - name: Install Mamba + uses: mamba-org/setup-micromamba@v1 with: environment-file: ${{ matrix.environment-file }} - miniforge-variant: ${{ matrix.miniforge-variant }} - miniforge-version: ${{ matrix.miniforge-version }} - python-version: ${{ matrix.python-version }} - use-mamba: true + create-args: >- + python=${{ matrix.python-version }} - - shell: bash -l {0} - run: | - pip install . + - name: Install Package + run: python -m pip install -e . - - shell: bash -l {0} - run: | - python -m pytest -v --color yes mosdef_gomc/tests --cov - coverage xml - echo "tests finished" + - name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }}) + run: python -m pytest -v --cov=mosdef_dihedral_fit --cov-append --cov-config=setup.cfg --color yes --pyargs mosdef_dihedral_fit - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + - name: Upload Converage Report + uses: codecov/codecov-action@v2 + with: + name: mosdef_dihedral_fit-Coverage + verbose: true docker: runs-on: 'ubuntu-latest'