Skip to content

Commit

Permalink
update cicd, add nix env, prep for new release (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetrucciani authored Aug 17, 2022
1 parent 82277bd commit 6928fd4
Show file tree
Hide file tree
Showing 17 changed files with 151 additions and 691 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use nix
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./setup.py
sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./bucketstore.py
- name: build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
41 changes: 34 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,51 @@
name: test

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
prospector:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: jpetrucciani/prospector-check@master
mypy:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: jpetrucciani/mypy-check@master
with:
path: 'bucketstore.py'
black:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: jpetrucciani/black-check@master
with:
path: 'bucketstore.py'
tests:
runs-on: ubuntu-latest
needs: [mypy, prospector, black]
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: python ${{ matrix.python-version }} tests
steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: install requirements
run: |
pip install -r requirements.txt
pip install -r requirements.dev.txt
- name: run Tox
run: tox -e py
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,5 @@ ENV/
# Rope project settings
.ropeproject

.direnv
result*
4 changes: 2 additions & 2 deletions .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mccabe:
options:
max-complexity: 22

pep8:
pycodestyle:
disable:
- N802
- N807
Expand All @@ -50,7 +50,7 @@ pyroma:
- PYR19
- PYR16

pep257:
pydocstyle:
disable:
- D000
- D100
Expand Down
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Jacobi Petrucciani
Copyright (c) 2022 Jacobi Petrucciani

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 0 additions & 11 deletions Pipfile

This file was deleted.

Loading

0 comments on commit 6928fd4

Please sign in to comment.