Skip to content

Commit

Permalink
Add github action to check style and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tdg5 committed Dec 10, 2023
1 parent 6bf910a commit 6aef61f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 21 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/other-check-quality-and-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

0 comments on commit 6aef61f

Please sign in to comment.