Skip to content

Commit

Permalink
Merge pull request #7 from moazreyad/master
Browse files Browse the repository at this point in the history
feat: Migrate to GitHub Actions and minor changes
sranasir authored Jan 31, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 46cb7e9 + 89a8de7 commit 142d1b8
Showing 3 changed files with 24 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Ubuntu

on:
push:
pull_request:

jobs:

sciunit-test-with-tox:
runs-on: ubuntu-20.04
container: geotrust/build-essential:ubuntu20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: update-pip
run: pip3 install --upgrade pip
- name: install-tox
run: pip3 install tox
- name: test-with-tox
run: tox
2 changes: 1 addition & 1 deletion tests/test_export.py
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@

class TestExport(testit.LocalCase):
def test_all(self):
py_file = 'export_example.py'
py_file = '/home/export_example.py'
self.create_sample_code(py_file)
testit.sciunit('create', 'ok')
testit.sciunit('exec', 'python', py_file)
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -4,15 +4,15 @@
# and then run "tox" from this directory.

[tox]
envlist = py37,pep8
envlist = py38,pep8

[testenv]
commands = python setup.py build
nosetests
deps = -r{toxinidir}/test-requirements.txt

[testenv:pep8]
basepython = python3.7
basepython = python3.8
deps = pycodestyle
commands = - pycodestyle
usedevelop = True

0 comments on commit 142d1b8

Please sign in to comment.