Skip to content

Commit

Permalink
Merge pull request #154 from EPFL-ENAC/feat-create-ci-testing
Browse files Browse the repository at this point in the history
Add pytest to github action
  • Loading branch information
ghiggi authored Jan 26, 2023
2 parents b7e8b60 + ce3e191 commit a7db617
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Black

on: [pull_request, workflow_dispatch]

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Pytest
on: [pull_request, workflow_dispatch]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Test with pytest
run: |
pytest

0 comments on commit a7db617

Please sign in to comment.