Spaces:
Sleeping
Sleeping
File size: 1,003 Bytes
aa19284 b1cf54d 989f731 b1cf54d 989f731 b1cf54d 1312ca7 b1cf54d 1312ca7 b1cf54d 1312ca7 b1cf54d 1312ca7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
name: Docker
on:
push:
branches:
- '*'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/**'
- 'setup.py'
- 'Project.toml'
- 'Dockerfile'
pull_request:
branches:
- '*'
paths:
- 'test/**'
- 'pysr/**'
- '.github/workflows/**'
- 'setup.py'
- 'Project.toml'
- 'Dockerfile'
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
julia-version: ['1.7.1']
python-version: ['3.9.10']
os: [ubuntu-latest]
arch: ['linux/x86_64']
steps:
- uses: actions/[email protected]
- name: Build docker
run: docker build -t pysr --build-arg ARCH=${{ matrix.arch }} --build-arg VERSION=${{ matrix.julia-version }} --build-arg PYVERSION=${{ matrix.python-version }} .
- name: Test docker
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m unittest test.test' |