Skip to content

Commit 08ddce1

Browse files
authored
Merge pull request #37 from flyingcircusio/fix-github-actions
actions: pin ubuntu version since ubuntu-22.04 doesn't include python 3.6 anymore
2 parents fb09637 + 84251e6 commit 08ddce1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-20.04
1414

1515
steps:
1616
- uses: actions/checkout@v2

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
1919

2020
# The type of runner that the job will run on
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-20.04
2222

2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:

tests/test_update_lockfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def test_update_lockfile_minimal_python(workdir, monkeypatch):
5151
assert os.path.exists(lockfile)
5252
with open(lockfile) as f:
5353
lockfile_content = f.read()
54+
# replace underscore with dashes for python 3.6 testing
55+
# some versions do not normalize the name like newer python versions
56+
lockfile_content = lockfile_content.replace("_", "-")
5457
assert "pytest==6.1.2" in lockfile_content
5558
assert "importlib-metadata==" in lockfile_content
5659
assert "typing-extensions==" in lockfile_content

0 commit comments

Comments
 (0)