Skip to content

Commit

Permalink
update to new setup and toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jan 15, 2025
1 parent 8a2ca05 commit 251703c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 59 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
ignore = E203,E226,E228,E231,E501,W503,W504
20 changes: 11 additions & 9 deletions .github/workflows/wipac-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,36 @@ on:
- '**'

env:
py_version: '3.10'
py_version: '3.12'

jobs:

flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ env.py_version }}
- uses: WIPACrepo/wipac-dev-flake8-action@v1.0
- uses: WIPACrepo/wipac-dev-flake8-action@v1.2

py-setup:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- uses: WIPACrepo/wipac-dev-py-setup-action@v2.5
- uses: WIPACrepo/wipac-dev-py-setup-action@v4.2
with:
python_min: 3.11

py-versions:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: versions
uses: WIPACrepo/wipac-dev-py-versions-action@v2.1

Expand All @@ -48,7 +50,7 @@ jobs:
matrix:
version: ${{ fromJSON(needs.py-versions.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
Expand All @@ -61,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build Docker Image
uses: docker/build-push-action@v4
with:
Expand All @@ -74,7 +76,7 @@ jobs:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand Down
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[project]
version = 0.0.7
dependencies = ["wipac-rest-tools"]

[project.optional-dependencies]
tests = [
"flake8",
"pytest",
"pytest-asyncio",
"pytest-mock",
]

[tool.pytest.ini_options]
async = auto
50 changes: 0 additions & 50 deletions setup.cfg

This file was deleted.

0 comments on commit 251703c

Please sign in to comment.