Skip to content

Commit

Permalink
Add pytest workflow and some tests for gen.py (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
wil93 authored Jul 25, 2023
1 parent 7eec161 commit fb99e74
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 122 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run pytest

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip pipenv
pipenv install --dev
- name: Test with pytest
run: |
pipenv run pytest
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "*"

[packages]
jinja2 = "*"
Expand Down
Loading

0 comments on commit fb99e74

Please sign in to comment.