PySR / .github /workflows /CI_docker.yml
MilesCranmer's picture
Add missing /bin/bash to docker workflow
5b33c65
raw
history blame
767 Bytes
name: Docker
on:
push:
branches:
- '*'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/**'
- 'setup.py'
- 'Project.toml'
pull_request:
branches:
- '*'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/**'
- 'setup.py'
- 'Project.toml'
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
julia-version: ['1.7.1']
python-version: ['3.9']
os: [ubuntu-latest]
steps:
- uses: actions/[email protected]
- name: Build docker
run: docker build -t pysr .
- name: Test docker
run: docker run --rm pysr /bin/bash -c 'python3 -m unittest test.test'