-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce6c383
commit df7638b
Showing
4 changed files
with
71 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,65 @@ | ||
name: Pull Request | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Setup Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
|
||
- name: Cache Dependencies | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }} | ||
|
||
- name: Install Dependencies if cache doesn't hit | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: poetry install | ||
|
||
- name: Run test | ||
run: poetry run invoke test | ||
|
||
- name: Upload Code Coverage | ||
run: bash <(curl -s https://codecov.io/bash) | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
static-analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Setup Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
|
||
- name: Cache Dependencies | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }} | ||
|
||
- name: Install Dependencies if cache doesn't hit | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: poetry install | ||
|
||
- name: Check Code Styles | ||
run: poetry run invoke check |
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 |
---|---|---|
|
@@ -14,20 +14,18 @@ jobs: | |
with: | ||
python-version: 3.9 | ||
|
||
- uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
- name: Setup Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
|
||
- name: Cache Dependencies | ||
uses: actions/cache@v2 | ||
id: cache-dependencies | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | ||
key: venv-${{ runner.os }}-${{ hashFiles('./poetry.lock') }} | ||
|
||
- name: Install Dependencies if cache doesn't hit | ||
if: steps.cache-dependencies.cache-hit != 'true' | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: poetry install | ||
|
||
- name: Publish to PyPI | ||
|
This file was deleted.
Oops, something went wrong.