Skip to content

Commit

Permalink
Add some actions (#1)
Browse files Browse the repository at this point in the history
* Add some actions

* Use run for steps

* Try container

* Flail

* More

* Sample test
  • Loading branch information
tyler-hoffman authored Nov 23, 2023
1 parent 68cf2ce commit ddb2c80
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/poetry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Poetry CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run ruff format .

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run ruff check --fix .

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run pyright .

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run pytest
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "aoc-2023"
version = "0.1.0"
description = ""
authors = ["Tyler Hoffman <tyler.hoffman@greatexpectations.io>"]
readme = "README.md"
readme = "README.rst"
packages = [{include = "aoc_2023"}]

[tool.poetry.dependencies]
Expand Down
2 changes: 2 additions & 0 deletions tests/test_wat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_wat():
assert True

0 comments on commit ddb2c80

Please sign in to comment.