diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff99baf..be62e40 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,19 +7,38 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Clone access + uses: actions/checkout@v4 + with: + path: access + + - name: Clone tree + uses: actions/checkout@v4 + with: + repository: sdss/tree + path: tree + - name: Set up Python 3.9 uses: actions/setup-python@v4 with: python-version: 3.9 - - name: Install dependencies + + - name: Install tree package run: | python -m pip install --upgrade pip + cd tree + pip install . + cd $GITHUB_WORKSPACE + + - name: Install access dependencies + run: | + python -m pip install --upgrade pip + cd access pip install .[dev] + - name: Lint with flake8 run: | pip install flake8 @@ -27,12 +46,14 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Setup SDSS-IV netrc uses: extractions/netrc@v1 with: machine: data.sdss.org username: ${{ secrets.S4_USERNAME }} password: ${{ secrets.S4_PASSWORD }} + - name: Setup SDSS-V netrc uses: extractions/netrc@v1 with: @@ -42,10 +63,11 @@ jobs: - name: Test with pytest run: | + cd access pip install pytest pytest - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: - file: ./coverage.xml \ No newline at end of file + file: ./access/coverage.xml \ No newline at end of file diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a82f566..9232781 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,8 @@ This document records the main changes to the sdss_access code. 3.0.3 (unreleased) ------------------ +- Add new ``tilegrp`` method for grouping LVM tile ids +- Updates test action to use the latest tree git repo 3.0.2 (11-2-2023) ------------------