Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Feb 27, 2024
1 parent 2ef38ad commit d70831b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: isort/isort-action@v1
with:
requirements-files: "requirements.txt test-requirements.txt"
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
7 changes: 5 additions & 2 deletions .github/workflows/test_and_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
echo `pwd`
ls ${{ github.workspace }}
python -m pip install . --no-deps
python -m pip install -e . --no-deps
- name: Access rubin-sim-data cache
id: cache-rs
Expand All @@ -70,11 +70,14 @@ jobs:
shell: bash -l {0}
run: conda list

- name: run black
shell: bash -l {0}
run: black --check

- name: run tests
shell: bash -l {0}
run: |
export RUBIN_SIM_DATA_DIR=~/rubin_sim_data
#pytest -r a -v
pytest -r a -v --cov=rubin_sim --cov=tests --cov-report=xml --cov-report=term --cov-branch
- name: Upload coverage to codecov
Expand Down

0 comments on commit d70831b

Please sign in to comment.