Skip to content

Commit

Permalink
Rearrange test directories (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 authored Sep 23, 2023
1 parent c0c6eb7 commit 5a827e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
max-parallel: 4
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -24,15 +24,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Install SRT
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e ".[test]"
- name: Run tests
env:
SRT_PASSWORD: ${{ secrets.SRT_PASSWORD }}
SRT_USERNAME: ${{ secrets.SRT_USERNAME }}
run: |
pip install pytest
pytest SRT -x -v
pytest tests -x -v
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ Changelog = "https://github.com/ryanking13/SRT/blob/master/CHANGELOG.md"
[project.scripts]
srt-reserve = "SRT.cli.reserve:main"

[project.optional-dependencies]
test = [
"pytest",
"pytest-httpserver",
]


[tool.hatch.version]
source = "vcs"

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 5a827e3

Please sign in to comment.