Skip to content

Commit

Permalink
tests: added GitHub workflow to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tadams42 committed May 8, 2024
1 parent abc2128 commit 6f4b2e4
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run tests


on:
push



jobs:
run_tests:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: "πŸ”Ή 🐍 ${{ matrix.python-version }}"

steps:
- uses: actions/checkout@v3

- name: "πŸ“¦ set up 🐍 ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml

- name: "πŸ“¦ ensure latest 🐍 pip"
run: python -m pip install --upgrade pip

- name: "πŸ“¦ ensure latest 🐍 wheel"
run: python -m pip install --upgrade wheel

- name: "πŸ“¦ install flask-marshmallow-openapi"
run: pip install .[tests]

- name: "run tests πŸ”Ή 🐍 ${{ matrix.python-version }}"
run: pytest

0 comments on commit 6f4b2e4

Please sign in to comment.