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 1710939
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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 npm
pip install pipenv
npm install -g pnpm
- 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 1710939

Please sign in to comment.