Skip to content

Commit

Permalink
Merge pull request #3 from matyaskuti/github_actions_ci
Browse files Browse the repository at this point in the history
Create GitHub actions CI definition
  • Loading branch information
matyaskuti authored Oct 15, 2023
2 parents 3c24194 + 79b142b commit e87e831
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint and test
on:
- push
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Pre-install dependencies
run: |
make install_lint_requirements
make install_test_requirements
- name: Lint
run: |
make lint
- name: Test
run: |
make test
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# python-project-template

![Test status](https://github.com/matyaskuti/python-project-template/actions/workflows/python-app.yml/badge.svg
)

A [`cookiecutter`](https://github.com/audreyr/cookiecutter) based Python
project template.

Expand Down

0 comments on commit e87e831

Please sign in to comment.