From 1631757e7436a89501497aff3f8592a4729294f0 Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Wed, 9 Oct 2024 16:39:29 +0100 Subject: [PATCH] gh-342: install libbz2-dev and use setup-python (#343) All of a sudden `libbz2-dev` is not present by default in GH Actions now + we were using system Python for a couple of jobs. Closes: #342 --- .github/workflows/test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc6b0ee..e23f765 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,6 +45,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install nox and coverage.py run: pip install coverage[toml] nox + - name: Install ubuntu dependencies for fitsio + run: | + sudo apt-get update + sudo apt-get install libbz2-dev - name: Run doctests run: nox -s doctests-${{ matrix.python-version }} --verbose - name: Run tests and generate coverage report @@ -76,6 +80,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: 3.x - name: Install nox run: pip install nox - name: Build SDist and wheel @@ -89,6 +96,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: 3.x - name: Install dependencies run: | sudo apt-get update