Merge pull request #15 from arnab82/main #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: '*' | |
pull_request: | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.7' | |
- '1.8' | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
arch: | |
- x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- uses: julia-actions/cache@v1 | |
env: | |
JULIA_NUM_THREADS: 2 | |
#- uses: julia-actions/julia-buildpkg@v1 | |
# - uses: julia-actions/julia-runtest@v1 | |
- run: echo " we are starting here" | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- name: Install python dependencies | |
run: | | |
which python; | |
python -V; | |
pip install -r requirements.txt; | |
- name: Run Julia tests | |
run: | | |
export TPSCI_PYTHON=$(which python) | |
export PYTHON=$(which python) | |
echo $(which python) | |
pip freeze; | |
echo "Contents of current directory:" | |
ls -al | |
echo "done." | |
julia --color=yes --project=./ -e 'using Pkg; Pkg.build("PyCall"); Pkg.test();' | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v2 | |
with: | |
files: lcov.info |