diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b30f893 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + + - uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: ${{ matrix.python-version }} + + - name: Install airss + shell: bash -el {0} + run: conda install -c conda-forge airss + + - name: Install dependencies + shell: bash -el {0} + run: | + python -m pip install --upgrade pip + pip install ".[testing]" + + - name: Test with pytest + shell: bash -el {0} + run: | + pytest \ No newline at end of file diff --git a/airsspy/build.py b/airsspy/build.py index fcca05d..3975ea8 100644 --- a/airsspy/build.py +++ b/airsspy/build.py @@ -66,7 +66,6 @@ def generate(self, timeout=10, write_cell=None): bc_proc.kill() self.bc_out, self.bc_err = bc_proc.communicate() raise BuildcellError - return None else: bc_proc.kill()