-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from foikila/add-actions
Add Github actions
- Loading branch information
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Install dependencies | ||
description: Install dependencies for the project | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
cache-dependency-path: .requirements.txt | ||
- name: Install dependencies | ||
shell: bash | ||
run: make install-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Continuous integration | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
push: | ||
# Trigger the workflow via a manual run | ||
workflow_dispatch: | ||
|
||
# Ensures that only one deploy task per branch/environment will run at a time. | ||
concurrency: | ||
group: environment-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
install: | ||
name: Install dependencies | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 1 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install | ||
|
||
unit-test: | ||
name: Run unit test | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 1 | ||
needs: [install] | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install | ||
- name: Run tests | ||
run: make test | ||
|
||
lint: | ||
name: Lint with Pylint | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 1 | ||
needs: [install] | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install | ||
- name: Lint with Pylint | ||
run: make pylint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters