Skip to content

Commit

Permalink
refactor ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Feb 20, 2024
1 parent d063816 commit 6af0426
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 137 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches: main # Comment this line if you want to test the CI before opening a PR

jobs:
ci:
runs-on: ubuntu-22.04
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: ${{ github.workspace }}/.python-version
cache: poetry
cache-dependency-path: poetry.lock
- name: Install dependencies
run: |
poetry install
- name: Typecheck
run: |
pyright .
- name: Lint
run: |
ruff check .
- name: Test
run: |
python3 -m pytest tests/
19 changes: 0 additions & 19 deletions .github/workflows/ci_core.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/python_reusable.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/top_level.yml

This file was deleted.

0 comments on commit 6af0426

Please sign in to comment.