PySR / .github /workflows /CI_docker_large_nightly.yml
MilesCranmer's picture
Fix python versions in test
bd436f3
raw
history blame
1.04 kB
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.7.1']
python-version: ['3.9']
os: [ubuntu-latest]
arch: ['linux/x86_64', 'linux/amd64', 'linux/aarch64']
steps:
- uses: actions/checkout@v1.0.0
- name: Set up QEMU
uses: docker/setup-qemu-action@master
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'