Skip to content

Commit

Permalink
2 setup ci with GitHub actions (#26)
Browse files Browse the repository at this point in the history
* Added 'CI' GitHub action

Runs pytest and black lint

* Separated installation, testing, and lint

GitHub actions now has three separate steps for these tasks
  • Loading branch information
LCVcode authored Aug 17, 2024
1 parent c583f7a commit 26545f7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install pytest black
- name: Test with pytest
run: pytest
- name: Lint code
run: black --check --line-length 80 .

0 comments on commit 26545f7

Please sign in to comment.