File size: 1,066 Bytes
50bfcf9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d22211a
50bfcf9
6ed57c8
6e4300b
50bfcf9
43e7deb
50bfcf9
 
e2988c9
ab11754
96e48e9
ab11754
 
50bfcf9
1312ca7
50bfcf9
acb3fea
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
name: Docker_Large_Nightly

on:
  schedule:
    # Run at the 0th minute of the 10th hour (UTC).
    # This means the job will run at 5am EST.
    - cron: "0 10 * * *"
    # This will automatically run on master branch only.
  workflow_dispatch:

jobs:
  test:
    runs-on: ${{ matrix.os }}
    defaults:
      run:
        shell: bash
    strategy:
      fail-fast: false
      matrix:
        julia-version: ['1.8.0-rc1-buster']
        python-version: ['3.9.10']
        os: [ubuntu-latest]
        arch: ['linux/x86_64', 'linux/amd64']
    
    steps:
      - uses: actions/checkout@v3
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v2
        with:
          platforms: all
      - 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 && python3 -m unittest test.test_env'