Skip to content

Commit

Permalink
Remove pre-defined github actions
Browse files Browse the repository at this point in the history
Use your own
  • Loading branch information
endrebak authored May 17, 2023
2 parents 2d3fa9e + 20f92c9 commit 971104b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/test_bamread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: isort/isort-action@v1
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install isort
- run: isort --check --diff .

black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
- name: Set up Python environment
uses: actions/setup-python@v4
with:
args: .
python-version: "3.11.0"
max-line-length: "120"
- run: pip install black
- run: black --check --diff .

flake8:
runs-on: ubuntu-latest
Expand All @@ -46,11 +55,10 @@ jobs:
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.11"
max-line-length: "120"
- name: flake8 Lint install
run: pip install flake8
- name: flake8 Lint
uses: py-actions/flake8@v2
run: flake8 --max-line-length=120 bamread

mypy:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,13 @@ Upload to pypi
```bash
twine upload -r testpypi dist/*
```

# Run github actions locally

See [act](https://github.com/nektos/act)

```bash
act -l # list available jobs
act -j <job> # run a job
act pull_request # run jobs triggered upon pull_request
```

0 comments on commit 971104b

Please sign in to comment.