Skip to content

Commit

Permalink
add github action for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Feb 12, 2024
1 parent fd5b746 commit e05dd3c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test
on:
push:
branches: [ "*" ]

jobs:
create-project:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
sudo apt install cookiecutter pre-commit pnpm
pip install pipenv
- name: create project with cookiecutter
run: |
git config --global init.defaultBranch main
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
cookiecutter --no-input --output-dir /tmp ./ project_slug=github_test_project
4 changes: 2 additions & 2 deletions {{ cookiecutter.project_slug }}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ repos:
- id: check-added-large-files

- repo: https://github.com/psf/black.git
rev: "23.11.0"
rev: "24.1.1"
hooks:
- id: black

- repo: https://github.com/PyCQA/isort.git
rev: "5.12.0"
rev: "5.13.2"
hooks:
- id: isort

0 comments on commit e05dd3c

Please sign in to comment.