Spaces:
Running
Running
Download .github/workflows/CI_docker.yml from MilesCranmer/PySR: direct link, hf CLI and curl.
- Browser
- Download file 979 Bytes
-
https://huggingface.co/spaces/MilesCranmer/PySR/resolve/b16d9efb3c83ced7870fbb7641fa97cfd9452a2d/.github/workflows/CI_docker.yml
- Command line
-
hf download hf://spaces/MilesCranmer/PySR@b16d9efb3c83ced7870fbb7641fa97cfd9452a2d/.github/workflows/CI_docker.yml
-
curl -L -o CI_docker.yml https://huggingface.co/spaces/MilesCranmer/PySR/resolve/b16d9efb3c83ced7870fbb7641fa97cfd9452a2d/.github/workflows/CI_docker.yml
979 Bytes
| 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 }} | |
| 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/checkout@v1.0.0 | |
| - 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' |