-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: migrate to github actions (#105)
- Loading branch information
1 parent
c53b83f
commit 4f2ac18
Showing
6 changed files
with
62 additions
and
23 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,60 @@ | ||
name: Bormeparser CI | ||
|
||
on: ["push", "pull_request"] | ||
|
||
env: | ||
PYTHON_VERSION: 3.9.13 | ||
PIP_VERSION: 22.1.2 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docs: | ||
name: 'Documentation build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip==${{ env.PIP_VERSION }} | ||
pip install -r requirements_doc.txt | ||
pip install -e . | ||
git rev-parse HEAD | ||
- name: Build html docs | ||
run: cd docs && make html | ||
|
||
# TODO: add lint job | ||
|
||
test: | ||
name: 'Bormeparser tests' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip==${{ env.PIP_VERSION }} wheel | ||
pip install coveralls | ||
pip install -r requirements.txt | ||
./setup.py -q develop | ||
- name: Run tests | ||
run: coverage run --source=bormeparser setup.py test | ||
- name: Publish to coveralls.io | ||
run: coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-r base.txt | ||
-r requirements.txt | ||
bpython==0.23 | ||
coverage==6.4.4 | ||
zest.releaser==7.0.0 |
File renamed without changes.
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