Skip to content

Commit

Permalink
Merge pull request #50 from sdss/gha
Browse files Browse the repository at this point in the history
Updates test action to use main tree repo
  • Loading branch information
havok2063 authored Nov 29, 2023
2 parents c9a6c12 + 9d1d9ae commit 52658c5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,53 @@ 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
# stop the build if there are Python syntax errors or undefined names
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:
Expand All @@ -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
file: ./access/coverage.xml
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
------------------
Expand Down

0 comments on commit 52658c5

Please sign in to comment.