Add github action to check style and tests #2
Workflow file for this run
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: Style, test, build, and publish the package | |
on: | |
push: | |
branches-ignore: [main] | |
jobs: | |
style-test-and-build: | |
name: Test, build, and publish the package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
path: qless-py | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
working-directory: qless-py | |
- name: Check style | |
run: | | |
source venv/bin/activate | |
make style | |
working-directory: qless-py | |
- name: Run tests and build package | |
run: | | |
source venv/bin/activate | |
make nose | |
python -m build | |
working-directory: qless-py |