Skip to content

Commit

Permalink
Add GitHub Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
ExcaliburZero committed Jul 7, 2024
1 parent d63970d commit 778b504
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Test

on: [push, pull_request]

permissions:
contents: read

jobs:
build:

name: Build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"

- name: Install package and dependencies
run: |
pip install '.[dev]'
- name: Lint with mypy
run: |
mypy ttdlgc
- name: Lint with ruff
run: |
ruff check ttdlgc
- name: Lint with black
run: |
black --check ttdlgc

0 comments on commit 778b504

Please sign in to comment.