Skip to content

Commit

Permalink
ci: add github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Sep 20, 2024
1 parent 433efb5 commit 56aa26c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PyStou - CI

# Trigger the workflow on push and pull request events to the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
name: Lint Code with Ruff
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install and use Ruff
uses: chartboost/ruff-action@v1

test:
name: Run Unit Tests on Multiple Python Versions
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10, 3.11] # Python versions to test
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install PyStou
run: pip install .

- name: Run Tests
run: python -m unittest discover tests

0 comments on commit 56aa26c

Please sign in to comment.