Skip to content

Commit f28aba6

Browse files
committed
Change GitHub Actions to ensure works on latest Python minor version.
1 parent cc542c0 commit f28aba6

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/pythontest.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,23 @@ jobs:
1313
test:
1414

1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
python-version: [3.7, 3.8]
1916

2017
steps:
2118
- name: Checkout jax_toolkit repo
2219
uses: actions/checkout@v2
2320
with:
2421
lfs: False
25-
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v1
22+
- name: Set up Python 3.x
23+
uses: actions/setup-python@v2
2724
with:
28-
python-version: ${{ matrix.python-version }}
25+
python-version: '3.x'
2926
- name: Install dependencies
3027
run: |
3128
python -m pip install --upgrade pip
32-
pip install --no-cache-dir -r requirements-dev.txt
33-
pip install .[losses_utils]
29+
make pip-install
3430
- name: Run lint
3531
run: |
3632
make lint
3733
- name: Run tests
3834
run: |
39-
make coverage
35+
make coverage

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ pip-compile: ## Compile requirements.txt from se
4747

4848
pip-install: ## Install dependencies into current environment
4949
pip install -r requirements-dev.txt
50+
pip install -e .\[losses_utils\]
5051

5152
pip-sync: ## Update your conda/virtual environment to reflect exactly (this will install/upgrade/uninstall everything necessary) what's in requirements.txt
5253
pip-sync
5354

5455
pip-sync-dev: pip-sync pip-install ## Update your conda/virtual environment to reflect exactly what's in requirements.txt, and then install the dev requirements.
55-
pip install .\[losses_utils\]
5656

5757
test-all: clean lint coverage-with-report ## Run all checks

0 commit comments

Comments
 (0)