Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
50bfcf9
1
Parent(s):
706f013
Create multi-arch CI testing
Browse files
.github/workflows/CI_docker_large_nightly.yml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Docker_Large_Nightly
|
2 |
+
|
3 |
+
on:
|
4 |
+
schedule:
|
5 |
+
# Run at the 0th minute of the 10th hour (UTC).
|
6 |
+
# This means the job will run at 5am EST.
|
7 |
+
- cron: "0 10 * * *"
|
8 |
+
# This will automatically run on master branch only.
|
9 |
+
workflow_dispatch:
|
10 |
+
|
11 |
+
jobs:
|
12 |
+
test:
|
13 |
+
runs-on: ${{ matrix.os }}
|
14 |
+
defaults:
|
15 |
+
run:
|
16 |
+
shell: bash
|
17 |
+
strategy:
|
18 |
+
matrix:
|
19 |
+
julia-version: ['1.7.1']
|
20 |
+
python-version: ['3.9']
|
21 |
+
os: [ubuntu-latest]
|
22 |
+
arch: ['linux/x86_64', 'linux/amd64', 'linux/arm64', 'linux/aarch64']
|
23 |
+
|
24 |
+
steps:
|
25 |
+
- uses: actions/[email protected]
|
26 |
+
- name: Build docker
|
27 |
+
run: docker build --platform=${{ matrix.arch }} -t pysr .
|
28 |
+
- name: Test docker
|
29 |
+
run: docker run --platform=${{ matrix.arch }} --rm pysr /bin/bash -c 'python3 -m unittest test.test'
|