diff --git a/.github/gh/FUNDING.yml b/.github/gh/FUNDING.yml deleted file mode 100644 index 3db918d..0000000 --- a/.github/gh/FUNDING.yml +++ /dev/null @@ -1,4 +0,0 @@ -# These are supported funding model platforms - -github: hyperb1iss -ko_fi: hyperb1iss diff --git a/.github/gh/workflows/ci-cd.yml b/.github/gh/workflows/ci-cd.yml deleted file mode 100644 index b378bf3..0000000 --- a/.github/gh/workflows/ci-cd.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: CI/CD - -on: - push: - branches: [ main ] - tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - pull_request: - branches: [ main ] - -jobs: - build-and-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.12' - - name: Install dependencies - run: | - pip install poetry - poetry install - - name: Run tests - run: poetry run pytest - - name: Upload test results - uses: actions/upload-artifact@v3 - with: - name: test-results - path: test-results - - create-release: - needs: [build-and-test] - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - - uses: actions/checkout@v3 - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - release: - needs: create-release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.12' - - name: Install dependencies - run: | - pip install poetry - poetry install - - name: Build package - run: poetry build - - name: Publish to PyPI - env: - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - run: | - poetry config pypi-token.pypi $PYPI_TOKEN - poetry publish diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index b378bf3..e07a7c5 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -21,6 +21,10 @@ jobs: run: | pip install poetry poetry install + - name: Run mypy (type check) + run: poetry run mypy aeonsync tests + - name: Run pylint (linting) + run: poetry run pylint aeonsync tests - name: Run tests run: poetry run pytest - name: Upload test results