-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action for static checking
- Loading branch information
1 parent
0067c62
commit 586122e
Showing
2 changed files
with
43 additions
and
1 deletion.
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,32 @@ | ||
name: Python static checks | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
env: | ||
PYTHON_VERSION: 3.10 | ||
|
||
jobs: | ||
unittests: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- | ||
uses: actions/checkout@v4 | ||
- | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{env.PYTHON_VERSION}} | ||
- | ||
name: Install packages | ||
run: | | ||
python${{env.PYTHON_VERSION}} -m pip install --upgrade pip | ||
pip${{env.PYTHON_VERSION}} install virtualenv | ||
- | ||
name: Run static checks | ||
run: | | ||
make prepare-venv | ||
make check |
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