Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates test action to use main tree repo #50

Merged
merged 5 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading