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

Initial set of CI tests together with a ephemeral MongoDB container #117

Merged
merged 46 commits into from
Nov 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
119f17e
Add pytest defaults
stuartcampbell Oct 9, 2024
8e736be
Add pytest fixtures
stuartcampbell Oct 9, 2024
48345a7
Add beamline api tests
stuartcampbell Oct 9, 2024
6e592a2
Add asgi-lifespan and pytest-asyncio for testing
stuartcampbell Oct 9, 2024
56ee022
Added pyright to dev requirements
stuartcampbell Oct 10, 2024
01ed1d8
upgrade dependencies
stuartcampbell Oct 10, 2024
4ef5080
Add initial infrastructure tests
stuartcampbell Oct 10, 2024
98138be
Add blank-ish .env file for pytest
stuartcampbell Oct 10, 2024
4f254e3
Refactor so we don't connect to slack on import
stuartcampbell Oct 10, 2024
41f88db
Settings checks for running in pytest
stuartcampbell Oct 10, 2024
192412e
Remove extra check for local mongodb
stuartcampbell Oct 10, 2024
b645a0e
Populate database and alter tests to match
stuartcampbell Oct 10, 2024
b25fef0
Create ci.yml
stuartcampbell Oct 10, 2024
821a3cb
fix indentation error
stuartcampbell Oct 10, 2024
926b32f
Revert to boring stuff for now
stuartcampbell Oct 10, 2024
99124d8
Install krb5 (for n2snusertools)
stuartcampbell Oct 10, 2024
b5c9983
install wheel early as well
stuartcampbell Oct 10, 2024
bce1b24
Add hook to ensure we captialize beamline name before inserting Document
stuartcampbell Oct 11, 2024
6a22d66
Add cycle to test database
stuartcampbell Oct 11, 2024
ee26bfb
Added tests for facility api endpoints
stuartcampbell Oct 11, 2024
0fa6361
Added proposal type into test database
stuartcampbell Oct 11, 2024
7589690
Make types consistent for mongodb DSN
stuartcampbell Oct 14, 2024
af93df2
Add coverage
stuartcampbell Oct 14, 2024
df5758b
Add python 3.13 to test matrix
stuartcampbell Oct 14, 2024
5d72465
Reformat and change default asyncio pytest loop scope
stuartcampbell Oct 16, 2024
c145b16
Mark tests as asyncio
stuartcampbell Oct 16, 2024
0eea6f7
Reformat
stuartcampbell Oct 16, 2024
d2fea12
Update for newest pytest-asyncio event_loop changes
stuartcampbell Oct 16, 2024
c900abb
Add back scope that was accidentally removed
stuartcampbell Oct 16, 2024
77a64a6
cleanup test database
stuartcampbell Oct 16, 2024
b88f6e2
Update requirements
stuartcampbell Oct 16, 2024
007b779
Fix default values in method to match type hints
stuartcampbell Oct 21, 2024
412e6c0
Change default asyncio loop scope
stuartcampbell Oct 21, 2024
22aec1f
Update pytest fixtures
stuartcampbell Oct 21, 2024
c3f9210
Add tests for facility_service
stuartcampbell Oct 21, 2024
2f2e305
Update test to be async
stuartcampbell Oct 21, 2024
0f058fc
Update test to be async
stuartcampbell Oct 21, 2024
0a6eec7
Change to use fastapi status codes rather than ints
stuartcampbell Oct 23, 2024
d632a99
Add a check for beamline existence before dir skeleton
stuartcampbell Oct 23, 2024
3270cd8
Add tests for non exsistent beamlines
stuartcampbell Oct 23, 2024
4081543
Update pyproject.toml to correct python versions
stuartcampbell Oct 25, 2024
ef24315
Upgrade dependencies
stuartcampbell Oct 25, 2024
b2ae974
Code Reformatting
stuartcampbell Oct 25, 2024
91d7c81
Code Reformating
stuartcampbell Nov 1, 2024
c41e4aa
Code Reformating
stuartcampbell Nov 1, 2024
6358db6
Update src/nsls2api/infrastructure/config.py
stuartcampbell Nov 1, 2024
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
Prev Previous commit
Next Next commit
Add python 3.13 to test matrix
  • Loading branch information
stuartcampbell committed Oct 14, 2024
commit df5758bc406627daeab34af1418f488451531a1c
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
python-version:
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v4
Expand Down