Skip to content

Commit

Permalink
Add github actions (#5)
Browse files Browse the repository at this point in the history
* Add github actions as CI
* Add python 3.11 & 3.12 checks
  • Loading branch information
smirnoffmg authored Nov 25, 2024
1 parent 5e0bcdf commit cec2a01
Show file tree
Hide file tree
Showing 3 changed files with 533 additions and 490 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test python package

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

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
- name: Run tests
run: poetry run pytest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ poetry run python -m metrics --help
```

```shell
poetry run python -m metrics --jira-server YOUR_SERVER_URL --jira_token YOUR_PERSONAL_TOKEN --jira-jql "project = Dev (for example)"
poetry run python -m metrics --jira-server YOUR_SERVER_URL --jira-token YOUR_PERSONAL_TOKEN --jira-jql "project = Dev (for example)"
```

## Example output
Expand Down
Loading

0 comments on commit cec2a01

Please sign in to comment.