Skip to content

Commit

Permalink
reorganize test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Oct 24, 2023
1 parent 1a28d12 commit a4325e0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/linter_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: testing

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Linter checks
steps:
- uses: actions/checkout@v1
- name: Install
run: cd python && pip install -e .
- name: Install packages needed for tests
run: pip install pytest pytest-cov pyright boto3 kachery_cloud flake8
- name: Install additional packages used by api_helpers
run: pip install -r requirements.txt
- name: Run linter checks
run: cd python && flake8 --config ../.flake8 && pyright
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Test
name: Tests
steps:
- uses: actions/checkout@v1
- name: Install
run: cd python && pip install -e .
- name: Install packages needed for tests
run: pip install pytest pytest-cov pyright boto3 kachery_cloud flake8
run: pip install pytest pytest-cov boto3 kachery_cloud
- name: Run tests and collect coverage
run: cd python && flake8 --config ../.flake8 && pyright && pytest --cov protocaas --cov-report=xml --cov-report=term tests/
run: cd python && pytest --cov protocaas --cov-report=xml --cov-report=term tests/
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# requirements for the api
# NOTE: these are the requirements for the api, picked up by vercel
fastapi
motor
simplejson
Expand Down

0 comments on commit a4325e0

Please sign in to comment.