Skip to content

Commit

Permalink
Merge pull request #151 from DerDreschner/feature/update-poetry-and-p…
Browse files Browse the repository at this point in the history
…ipelines

Update Poetry, GitHub Actions and devcontainer to latest versions
  • Loading branch information
DerDreschner authored Jan 17, 2025
2 parents 60d0286 + 97493e3 commit c1b0f88
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 160 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"image": "mcr.microsoft.com/devcontainers/base:focal",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12",
"toolsToInstall": "poetry, pre-commit"
"toolsToInstall": "poetry,pre-commit"
}
}
}
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==1.8.3
pip install poetry==2.0.1
- name: Build package
run: poetry build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==1.8.3
pip install poetry==2.0.1
poetry install
- name: Test with pytest
run: |
poetry run coverage run test.py
poetry run coverage xml
- name: 'Upload coverage to Codecov'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
Loading

0 comments on commit c1b0f88

Please sign in to comment.