Skip to content

Commit

Permalink
Adds initial ci workflow, additional linters
Browse files Browse the repository at this point in the history
  • Loading branch information
karloskalcium committed Apr 20, 2024
1 parent f0e095f commit a06cfa6
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: CI
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
workflow_dispatch:

permissions:
contents: read

jobs:
ci:
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
poetry-version: ["1.8.2"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Python Poetry Action
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run tests
run: make test
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace

- repo: https://github.com/rhysd/actionlint
rev: c6bd06256dd700a45e483869bcdcf304239393a6 # frozen: v1.6.27
hooks:
- id: actionlint-system
- repo: https://github.com/executablebooks/mdformat
rev: 08fba30538869a440b5059de90af03e3502e35fb # frozen: 0.7.17
hooks:
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[tool.poetry]
name = "md2enex"
version = "0.2"
description = "Converts markdown to Evernote ENEX files so they can be imported"
authors = ["karloskalcium"]
description = "Converts markdown to Evernote ENEX files so they can be imported"
license = "MIT"
name = "md2enex"
readme = "README.md"
repository = "https://github.com/karloskalcium/md2enex"
version = "0.2"

[tool.poetry.dependencies]
python = "^3.10"
Expand Down

0 comments on commit a06cfa6

Please sign in to comment.