Skip to content

Commit

Permalink
build: update workflows and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
EHadoux committed Nov 18, 2023
1 parent 47ed161 commit f1589bf
Show file tree
Hide file tree
Showing 41 changed files with 94 additions and 17,003 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,16 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
commit-message:
prefix: 'deps'
include: 'scope'
groups:
dev-dependencies:
dependency-type: 'development'
- package-ecosystem: 'github-actions' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: 'weekly'
commit-message:
prefix: 'deps'
include: 'scope'
40 changes: 40 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: python
package-name: 'scribemi'
include-v-in-tag: false
token: ${{ secrets.PATFORRELEASE }}
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-python@v4
if: ${{ steps.release.outputs.release_created }}
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt
if: ${{ steps.release.outputs.release_created }}
- run: python3 -m build
if: ${{ steps.release.outputs.release_created }}
- uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ steps.release.outputs.release_created }}
with:
password: ${{ secrets.PYPI_PASSWORD }}



39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
push:
branches:
- master
pull_request:
branches:
- master
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install deps
run: pip install -r requirements.txt
- name: Run tests
run: python -m coverage run -m pytest
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
USERNAME: ${{ secrets.USERNAME }}
USERNAME2: ${{ secrets.USERNAME2 }}
PASSWORD: ${{ secrets.PASSWORD }}
OTPCODE: ${{ secrets.OTPCODE }}
USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
FEDERATED_POOL_ID: ${{ secrets.FEDERATED_POOL_ID }}
- name: Publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: coverage xml
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ __pycache__
ScribeMi/.env
env/
tests/.env
.vscode
.vscode
venv
4 changes: 0 additions & 4 deletions docs/.buildinfo

This file was deleted.

Binary file removed docs/.doctrees/environment.pickle
Binary file not shown.
Binary file removed docs/.doctrees/index.doctree
Binary file not shown.
Binary file removed docs/.doctrees/installation.doctree
Binary file not shown.
Binary file removed docs/.doctrees/methods.doctree
Binary file not shown.
Binary file removed docs/.doctrees/reference.doctree
Binary file not shown.
Empty file removed docs/.nojekyll
Empty file.
42 changes: 0 additions & 42 deletions docs/_sources/index.rst.txt

This file was deleted.

17 changes: 0 additions & 17 deletions docs/_sources/installation.rst.txt

This file was deleted.

85 changes: 0 additions & 85 deletions docs/_sources/methods.rst.txt

This file was deleted.

7 changes: 0 additions & 7 deletions docs/_sources/reference.rst.txt

This file was deleted.

Loading

0 comments on commit f1589bf

Please sign in to comment.