Skip to content

Commit 19a1ea6

Browse files
authored
Merge pull request #46 from nasa/release/0.11.0
Release 0.11.0
2 parents 1439889 + 8a5d4ab commit 19a1ea6

19 files changed

+3146
-560
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
exclude = .venv

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
71+
uses: github/codeql-action/analyze@v3

.github/workflows/python-app.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,51 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
1+
# This workflow will install Python dependencies, run tests and lint with all supported Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python application
4+
name: Tests
55

66
on:
77
push:
88
branches: [ develop ]
99
pull_request:
1010
branches: [ develop, main ]
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
15+
16+
defaults:
17+
run:
18+
shell: bash -leo pipefail {0}
19+
1220
jobs:
1321
build:
14-
15-
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
26+
poetry-version: ["1.8.2"]
27+
os: [ubuntu-latest]
28+
runs-on: ${{ matrix.os }}
1629

1730
steps:
1831
- uses: actions/checkout@v4
19-
- name: Set up Python 3.10
32+
- name: Set up Python ${{ matrix.python-version }}
2033
uses: actions/setup-python@v5
2134
with:
22-
python-version: "3.10"
23-
- name: Install Poetry
35+
python-version: ${{ matrix.python-version }}
36+
- name: Install Poetry ${{ matrix.poetry-version }}
2437
uses: abatilo/actions-poetry@v3
2538
with:
26-
poetry-version: 1.7.1
39+
poetry-version: ${{ matrix.poetry-version }}
40+
- name: Setup a local virtual environment
41+
run: |
42+
poetry config virtualenvs.create true --local
43+
poetry config virtualenvs.in-project true --local
44+
- uses: actions/cache@v4
45+
name: Define a cache for the virtual environment based on the dependencies lock file
46+
with:
47+
path: ./.venv
48+
key: venv-${{ hashFiles('poetry.lock') }}
2749
- name: Install dependencies
2850
run: |
2951
poetry run python -m pip install --upgrade pip
@@ -34,6 +56,9 @@ jobs:
3456
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3557
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3658
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
59+
- name: Check types with mypy
60+
run: |
61+
poetry run mypy cmr tests
3762
- name: Test with pytest
3863
run: |
3964
poetry run pytest

0 commit comments

Comments
 (0)