|
| 1 | +name: Run tests |
| 2 | + |
| 3 | +on: [push] |
| 4 | + |
| 5 | +jobs: |
| 6 | + build: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + |
| 9 | + steps: |
| 10 | + - uses: actions/checkout@v1 |
| 11 | + - name: Set up Python 3.7 |
| 12 | + uses: actions/setup-python@v1 |
| 13 | + with: |
| 14 | + python-version: 3.7 |
| 15 | + - uses: actions/checkout@v1.0.0 |
| 16 | + - uses: julia-actions/setup-julia@v1 |
| 17 | + with: |
| 18 | + version: '1.4.1' |
| 19 | + - name: Install Julia dependencies |
| 20 | + run: | |
| 21 | + julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/APLA-Toolbox/PDDL.jl"))' |
| 22 | + julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/JuliaPy/PyCall.jl"))' |
| 23 | + - name: Install Python dependencies |
| 24 | + run: | |
| 25 | + python -m pip install --upgrade pip |
| 26 | + python -m pip install julia |
| 27 | + python -m pip install pycall |
| 28 | + - name: Lint with flake8 |
| 29 | + run: | |
| 30 | + python -m pip install flake8 |
| 31 | + # stop the build if there are Python syntax errors or undefined names |
| 32 | + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
| 33 | + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
| 34 | + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
| 35 | +
|
| 36 | + test: |
| 37 | + runs-on: ubuntu-latest |
| 38 | + steps: |
| 39 | + - uses: actions/checkout@v1 |
| 40 | + - name: Set up Python 3.7 |
| 41 | + uses: actions/setup-python@v1 |
| 42 | + with: |
| 43 | + python-version: 3.7 |
| 44 | + - uses: actions/checkout@v1.0.0 |
| 45 | + - uses: julia-actions/setup-julia@v1 |
| 46 | + with: |
| 47 | + version: '1.4.1' |
| 48 | + - name: Install Julia dependencies |
| 49 | + run: | |
| 50 | + julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/APLA-Toolbox/PDDL.jl"))' |
| 51 | + julia --color=yes -e 'using Pkg; Pkg.add(Pkg.PackageSpec(path="https://github.com/JuliaPy/PyCall.jl"))' |
| 52 | + - name: Install Python dependencies |
| 53 | + run: | |
| 54 | + python -m pip install --upgrade pip |
| 55 | + python -m pip install julia |
| 56 | + python -m pip install pycall |
| 57 | + - name: Lint with flake8 |
| 58 | + run: | |
| 59 | + python -m pip install flake8 |
| 60 | + # stop the build if there are Python syntax errors or undefined names |
| 61 | + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
| 62 | + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
| 63 | + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
| 64 | + - name: Test with pytest |
| 65 | + run: | |
| 66 | + pip install pytest |
| 67 | + pytest |
| 68 | + - name: Upload coverage to Codecov |
| 69 | + uses: codecov/codecov-action@v1 |
| 70 | + with: |
| 71 | + name: codecov-umbrella |
0 commit comments