Skip to content

Commit

Permalink
Add CI + dependabot and update packages (#1)
Browse files Browse the repository at this point in the history
* Add CI + update packages

* re-run black

* update cache
  • Loading branch information
sciyoshi authored Jan 23, 2023
1 parent 30a73b2 commit 53831de
Show file tree
Hide file tree
Showing 5 changed files with 330 additions and 408 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.11

- name: cache poetry install
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-0

- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: cache deps
id: cache-deps
uses: actions/cache@v3
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}

- run: poetry install --no-interaction --no-root
if: steps.cache-deps.outputs.cache-hit != 'true'

- run: poetry install --no-interaction

- run: poetry run pytest tests.py
- run: poetry run black mudder.py tests.py
- run: poetry run flake8 mudder.py
Loading

0 comments on commit 53831de

Please sign in to comment.