-
Notifications
You must be signed in to change notification settings - Fork 0
Support Python 3.6+ #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 22 commits
5413053
dd31f29
c256e69
5384645
258103a
cc4cb60
05393d8
32984ad
0646b07
f4c5a6d
805c151
dccbd6d
1321804
9275e93
157286c
3e346fa
c24fc58
0b99c43
4306088
266d574
f939f64
d4f3fdd
adabd29
6ba81a6
20b4554
a81bb51
9dcd291
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,35 @@ | ||
| name: Run Tests | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: | ||
| # trigger on pull requests | ||
| pull_request: | ||
|
|
||
| # trigger on all commits to master | ||
| push: | ||
| branches: | ||
| - "main" | ||
| - "breaking" | ||
|
|
||
| # trigger on request | ||
| workflow_dispatch: | ||
|
|
||
|
|
||
| jobs: | ||
| run_tests: | ||
| name: Run tests on ubuntu-latest with Python ${{ matrix.python-version }} | ||
| runs-on: ubuntu-latest | ||
| run-tests-modern-python: | ||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
| runs-on: ["ubuntu-latest"] | ||
| # Pull in the test script from run_tests and distribute python from matrix versions | ||
| uses: ./.github/workflows/run_tests.yaml | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| runs-on: ${{ matrix.runs-on }} | ||
|
|
||
| run-tests-legacy-python: | ||
| needs: run-tests-modern-python # Wait until tests pass on python 3.9+ | ||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| python-version: ["3.9","3.10","3.11","3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install requirements.txt | ||
| python -m pip install tests/requirements.txt | ||
| - name: Install package | ||
| run: | | ||
| python --version | ||
| python -c "import numpy; print('numpy', numpy.__version__)" | ||
| python -m pip install . -v --progress-bar off | ||
| - name: Test with pytest | ||
| run: | | ||
| python -m pytest -v | ||
| python-version: ["3.6", "3.7", "3.8"] | ||
| runs-on: ["ubuntu-20.04"] | ||
| uses: ./.github/workflows/run_tests.yaml | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| runs-on: ${{ matrix.runs-on }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Run tests | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| python-version: | ||
| required: true | ||
| type: string | ||
| runs-on: | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| run_test: | ||
| runs-on: ${{ inputs.runs-on }} | ||
| steps: | ||
| # Steps common to both groups | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ inputs.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ inputs.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install -r requirements.txt | ||
| python -m pip install -r tests/requirements.txt | ||
| - name: Install package | ||
| run: | | ||
| python --version | ||
| python -m pip install . -v --progress-bar off | ||
| python -c "import parsnip; print('parsnip', parsnip.__version__)" | ||
| - name: Test with pytest | ||
| run: | | ||
| python -m pytest -v |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # ruff: noqa: D100 | ||
| from setuptools import setup | ||
|
|
||
| setup(name="parsnip") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| gemmi | ||
| pytest | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.