-
Notifications
You must be signed in to change notification settings - Fork 308
37 lines (36 loc) · 1.15 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test firefox_decrypt
on: [workflow_dispatch, push]
jobs:
test-firefox:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
# pypy3 not yet up to speed with py3.9 typing hints
# python-version: [3.9, 3.10.0-alpha.6, pypy3]
python-version: ['3.9', '3.10', '3.11']
firefox: ['87.0', 'latest-esr', 'latest']
env:
# Needed to force UTF-8 and have consistent behavior in Windows
PYTHONUTF8: 1
steps:
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Setup firefox ${{ matrix.firefox }}
if: |
matrix.os == 'ubuntu' ||
(matrix.os == 'windows' && matrix.firefox == '87.0')
uses: browser-actions/setup-firefox@latest
with:
firefox-version: ${{ matrix.firefox }}
- name: Install nss by homebrew
if: ${{ matrix.os == 'macos' }}
run: brew install nss
- name: Run tests
run: |
cd tests
python show_encodings
python run_all -v