Skip to content

remove container after gathering logs #1301

remove container after gathering logs

remove container after gathering logs #1301

Workflow file for this run

# Workflow for running the test suite
name: Run tests
on:
push:
branches:
- master
- beta
- release
pull_request:
branches:
- master
- beta
- release
- temp
workflow_dispatch:
jobs:
build:
name: Test suite
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
env:
TAR: /bin/tar
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-tinytex@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: liskin/gh-pipx@v1
with:
packages: >-
poetry
- uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
create-args: >-
python=${{ matrix.python_version }}
init-shell: >-
bash
cache-environment: true
cache-environment-key: mamba-${{ hashFiles('environment.yml') }}
- name: Install dependencies
run: |
micromamba activate otter-grader
poetry env info
poetry install --with dev,test --all-extras
- name: Install ottr
run: |
micromamba run -n otter-grader Rscript -e 'install.packages("ottr", dependencies=TRUE, repos="https://cran.r-project.org/")'
- name: Run tests
run: |
micromamba activate otter-grader
make testcov DOCKER=false PYTESTOPTS="-vv" && coverage lcov -i
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
parallel: true
flag-name: run ${{ join(matrix.*, ' - ') }}
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
parallel-finished: true