Skip to content

Commit

Permalink
CI changes
Browse files Browse the repository at this point in the history
- poetry instead of pipenv
- github actions over circleci
- updates
  • Loading branch information
mhemeryck committed Nov 7, 2022
1 parent 42aa670 commit 6d08943
Show file tree
Hide file tree
Showing 12 changed files with 691 additions and 767 deletions.
137 changes: 0 additions & 137 deletions .circleci/config.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .coveragerc

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI
on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.2.2"
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "poetry"
- name: Check poetry file itself
run: poetry check
- name: Install package
run: poetry install
- name: Lint
run: poetry run flake8 .
- name: Autoformat check
run: poetry run black .
- name: Isort import order check
run: poetry run isort -c .
- name: Unit tests
run: poetry run pytest
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: poetry run coveralls --service=github
package:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
needs: test
steps:
- uses: actions/checkout@v3
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.2.2"
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "poetry"
- name: Install package
run: poetry install
- name: Create packages
run: |
poetry run python setup.py sdist
poetry run python setup.py bdist_wheel
- name: Publish to test PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 0 additions & 6 deletions .isort.cfg

This file was deleted.

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

Copyright (c) 2019 Martijn Hemeryck
Copyright (c) 2022 Martijn Hemeryck

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
19 changes: 0 additions & 19 deletions Pipfile

This file was deleted.

Loading

0 comments on commit 6d08943

Please sign in to comment.