Skip to content

Commit

Permalink
CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Mar 31, 2024
1 parent 59a11b2 commit 044078d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -e '.[tests]'
- name: Lint with Ruff
run: |
ruff check .
- name: Test with snippets
run: |
pytest
- name: Test with pytest
run: |
cd snippets && AHEUI=../rpaheui.py ./test.sh --disable logo
- name: Codecov
run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion aheui/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '1.2.2-20-gee8ab38'
VERSION = '1.2.3'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_readme():


tests_require = [
'flake8', 'tox', 'pytest>=3.0.1',
'ruff', 'tox', 'pytest>=3.0.1',
]

setup(
Expand Down
2 changes: 1 addition & 1 deletion snippets

0 comments on commit 044078d

Please sign in to comment.