Skip to content

Commit

Permalink
Add github action for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Sep 18, 2024
1 parent a0a7a77 commit bcb3557
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python Tests

on: [push, pull_request]

jobs:
pytest:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Test with pytest
run: |
python -m pytest
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,5 @@ modules.xml
# End of https://www.gitignore.io/api/pycharm+iml

# Local files
.envrc
.envrc
.antlr
1 change: 0 additions & 1 deletion tests/test_expressions_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This test module goal is to test all basic constructions of the language.
"""
import builtins

import pytest


Expand Down
1 change: 0 additions & 1 deletion tests/test_expressions_strict.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This test module goal is to test all basic constructions of the language.
"""
import builtins

import pytest


Expand Down

0 comments on commit bcb3557

Please sign in to comment.