-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from CarloDePieri/testing
New features: - `cassette_path_func` the cassettes that are going to be deleted can now be determined by a function that will run after the test is complete, with the test context Improvement: - refactor codebase - improved tooling and code analysis - add automated release on pypi
- Loading branch information
Showing
16 changed files
with
1,153 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
name: deploy | ||
|
||
on: | ||
|
||
release: | ||
types: [published] | ||
|
||
jobs: | ||
|
||
deploy: | ||
name: deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout. | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.7.x' | ||
|
||
- name: Make sure path are there also for act shells. | ||
if: ${{ env.ACT }} | ||
run: | | ||
echo "export PATH=\"/opt/hostedtoolcache/Python/${{ env.python_version }}/x64:/opt/hostedtoolcache/Python/${{ env.python_version }}/x64/bin:$PATH\"" >> /root/.bashrc | ||
- name: Upgrade pip. | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Install poetry and invoke. | ||
run: pip install poetry invoke | ||
|
||
- name: Configure poetry and pypi | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
# Workaround since it won't take the token auth | ||
poetry config http-basic.pypi "__token__" "${{ secrets.PYPI_TOKEN }}" | ||
- name: Install the first python venv | ||
run: poetry install --no-dev | ||
|
||
- name: Build the package | ||
run: inv build | ||
|
||
- name: Deploy on pypi | ||
run: poetry publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ coverage | |
.coveralls.yml | ||
.secrets | ||
dist | ||
.scannerwork/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.