Skip to content

Commit

Permalink
Merge pull request #6 from pheetah/feat/enhance
Browse files Browse the repository at this point in the history
feat: set up CI tests
  • Loading branch information
pheetah authored Dec 24, 2023
2 parents dae2bdb + 0726806 commit fc78fd8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pull Request Testing

on:
pull_request:
branches: [main]

jobs:

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install Graphviz
run: |
sudo apt-get install graphviz graphviz-dev
pip install pygraphviz
- name: Test with pytest
run: |
python -m pytest -o log_cli=true -s -vv --cov
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# main
code-tokenize==0.2.0
pygraphviz==1.11
# test
pytest-cov==4.1.0
pytest==7.4.3

0 comments on commit fc78fd8

Please sign in to comment.