Skip to content

Commit

Permalink
Github action: fix bug and run example*.py for test (AeonLucid#71)
Browse files Browse the repository at this point in the history
* Fix bug: use correct python version when testing

* Github action: run example*.py for test
  • Loading branch information
hzyitc authored Mar 13, 2022
1 parent 40b89c8 commit 10da9bb
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,27 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install tox tox-gh-actions
- name: Test
- name: Install to system
run: |
python setup.py install
- name: Run tox for Test
run: |
tox
- name: Run example*.py for test
shell: bash
run: |
cd examples
for file in $(ls example*.py); do
echo "::group::Run $file"
python3 "$file"
echo "::endgroup::"
done
build:
needs: [test]
Expand Down

0 comments on commit 10da9bb

Please sign in to comment.