Skip to content

Commit

Permalink
Reconfigured unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
beveradb committed Jan 29, 2024
1 parent 2fcf5c5 commit c9d3a01
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout project
uses: actions/checkout@v4

# Configured following guide at:
# https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
cache: "poetry" # caching dependencies from poetry.lock

- name: Run unit tests
run: pytest tests/unit
- name: Install Poetry dependencies
run: poetry install

- name: Run pytest unit tests
run: poetry run pytest tests/unit

# - name: Run integration tests
# run: pytest tests/integration
# - name: Run end-to-end tests
# run: pytest tests/end_to_end
# - name: Run pytest integration tests
# run: poetry run pytest tests/integration
# - name: Run pytest end-to-end tests
# run: poetry run pytest tests/end_to_end

0 comments on commit c9d3a01

Please sign in to comment.