add lint #37
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
name: Continuous Integration Master | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
name: Continuous Integration | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Pytests | |
run: | | |
make tests | |
- name: Set Version | |
id: version | |
run: | | |
echo "::set-output name=PKG_VERSION::$(pip show crypto_pkg | grep Version | sed 's/Version://g' | sed 's/ //g')" | |
- name: Crete Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.version.outputs.PKG_VERSION }} | |
draft: false | |
prerelease: false |