File size: 879 Bytes
aa19284
b1cf54d
 
 
 
df21dce
b1cf54d
 
 
d369a9b
b1cf54d
989f731
b1cf54d
 
 
 
 
 
d369a9b
b1cf54d
989f731
b1cf54d
 
 
 
72dc01c
b1cf54d
 
 
 
 
 
cf51967
1312ca7
b1cf54d
3a1fd74
b1cf54d
744fcfb
b1cf54d
4320392
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
name: Docker

on:
  push:
    branches:
      - '**'
    paths:
      - 'test/**'
      - 'pysr/**'
      - '.github/workflows/CI_docker.yml'
      - 'setup.py'
      - 'Dockerfile'
  pull_request:
    branches:
      - '*'
    paths:
      - 'test/**'
      - 'pysr/**'
      - '.github/workflows/CI_docker.yml'
      - 'setup.py'
      - 'Dockerfile'

jobs:
  test:
    runs-on: ${{ matrix.os }}
    timeout-minutes: 60
    defaults:
      run:
        shell: bash
    strategy:
      matrix:
        os: [ubuntu-latest]
        arch: ['linux/amd64']

    steps:
      - uses: actions/checkout@v4
      - name: Build docker
        run: docker build --platform=${{ matrix.arch }} -t pysr .
      - name: Test docker
        run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m pysr test main && python3 -m pysr test cli && python3 -m pysr test env'