Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
Replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontaigu committed Dec 28, 2020
1 parent 704cbef commit 9566593
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 15 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on: [push, pull_request]

jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.6, 3.7, 3.8, 3.9]
laz-backend: [ None, lazrs, laszip ]

steps:
- name: Clone
uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install With LAZ backend
if: matrix.laz-backend != 'None'
run: pip install .[${{ matrix.laz-backend }}]

- name: Install Without LAZ backend
if: matrix.laz-backend == 'None'
run: pip install .

- name: Run Tests
run: |
pip install pytest
pytest pylastests
pytest pylas
pytest docs
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"lazrs>=0.2.3, < 0.3.0"
],
"laszip": [
"laszip >= 0.1.0, < 0.2.0"
"laszip >= 0.0.1, < 0.1.0"
]
}
)

0 comments on commit 9566593

Please sign in to comment.