Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CI #13

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/**/* @OseSem
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it to @Mr-Robot-Discord-Bot/maintainers

78 changes: 78 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: CI
on:
push:
branches:
- 'master'
pull_request:

permissions:
read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11", "3.12" ]
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: Run pre-commit
id: pre-commit
uses: pre-commit/[email protected]

pyright:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11", "3.12" ]
fail-fast: false
continue-on-error: ${{ matrix.experimental }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: ${{ matrix.python-version }}
- run: pip install -r requirements.txt


- name: Run Pyright (Linux)
uses: jakebailey/[email protected]
with:
pylance-version: latest-release
python-platform: "Linux"
python-version: ${{ matrix.python-version }}
warnings: true

- name: Run Pyright (Windows)
uses: jakebailey/[email protected]
with:
pylance-version: latest-release
python-platform: "Windows"
python-version: ${{ matrix.python-version }}
warnings: true

check: # This job does nothing and is only used for the branch protection
if: always()
needs:
- pre-commit
- pyright

runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}
30 changes: 0 additions & 30 deletions .github/workflows/lint.yml

This file was deleted.

Loading