Skip to content

Commit

Permalink
Setup ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscoder committed Dec 19, 2024
1 parent cde3a73 commit d05f092
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: github-actions
on: [push]

jobs:
static-code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run static code analysis with Ruff
run: poetry run ruff check
- name: Run typecheck with Mypy
run: poetry run mypy
tests:
runs-on: ubuntu-latest
needs: [static-code-analysis]
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Test with pytest
run: poetry run pytest

0 comments on commit d05f092

Please sign in to comment.